gstdoc-scangobj: Always use format strings for printf-like functions, even if they...
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 20 Jun 2008 08:43:28 +0000 (08:43 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 20 Jun 2008 08:43:28 +0000 (08:43 +0000)
Original commit message from CVS:
* gstdoc-scangobj:
Always use format strings for printf-like functions, even if they just
print a string. Fixes bug #536981.

ChangeLog
gstdoc-scangobj

index f508750..686d741 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-06-20  Sebastian Dröge  <slomo@circular-chaos.org>
 
+       * gstdoc-scangobj:
+       Always use format strings for printf-like functions, even if they just
+       print a string. Fixes bug #536981.
+
+2008-06-20  Sebastian Dröge  <slomo@circular-chaos.org>
+
        * gtk-doc-plugins.mak:
        * gtk-doc.mak:
        Include CFLAGS and LDFLAGS in GTKDOC_CFLAGS and GTKDOC_LDFLAGS,
index d246dd2..cb7b731 100755 (executable)
@@ -927,7 +927,7 @@ output_hierarchy (FILE  *fp,
 
   for (i = 0; i < level; i++)
     fprintf (fp, "  ");
-  fprintf (fp, g_type_name (type));
+  fprintf (fp, "%s", g_type_name (type));
   fprintf (fp, "\\n");
 
   children = g_type_children (type, &n_children);
@@ -979,7 +979,7 @@ output_interfaces (FILE  *fp,
 
   if (n_interfaces > 0)
     {
-      fprintf (fp, g_type_name (type));
+      fprintf (fp, "%s", g_type_name (type));
       for (i=0; i < n_interfaces; i++)
           fprintf (fp, " %s", g_type_name (interfaces[i]));
       fprintf (fp, "\\n");
@@ -1024,7 +1024,7 @@ output_prerequisites (FILE  *fp,
 
   if (n_prerequisites > 0)
     {
-      fprintf (fp, g_type_name (type));
+      fprintf (fp, "%s", g_type_name (type));
       for (i=0; i < n_prerequisites; i++)
           fprintf (fp, " %s", g_type_name (prerequisites[i]));
       fprintf (fp, "\\n");