From d9cd98b46aebaf143dc43d8563a3bff650be6a7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Jun 2008 08:43:28 +0000 Subject: [PATCH] gstdoc-scangobj: Always use format strings for printf-like functions, even if they just print a string. Fixes bug #53... 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 | 6 ++++++ gstdoc-scangobj | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f508750..686d741 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-06-20 Sebastian Dröge + * 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 + * gtk-doc-plugins.mak: * gtk-doc.mak: Include CFLAGS and LDFLAGS in GTKDOC_CFLAGS and GTKDOC_LDFLAGS, diff --git a/gstdoc-scangobj b/gstdoc-scangobj index d246dd2..cb7b731 100755 --- a/gstdoc-scangobj +++ b/gstdoc-scangobj @@ -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"); -- 2.7.4