From c7197cad42d6269739f379025c2bec9e474c8027 Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Sat, 29 Jan 2011 16:31:30 +0100 Subject: Fixed format string issues by giving static literals, fixes bug 640897 --- tests/test3-main.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/test3-main.c') diff --git a/tests/test3-main.c b/tests/test3-main.c index f2c69c9..33e1a9a 100644 --- a/tests/test3-main.c +++ b/tests/test3-main.c @@ -123,8 +123,7 @@ test_import_style (CRDocHandler * a_handler, guchar *str = cr_string_dup2 ((CRString *) cur->data); if (str) { - fprintf (stdout, str); - fprintf (stdout, "\n"); + fprintf (stdout, "%s\n", str); g_free (str); str = NULL; } @@ -136,8 +135,7 @@ test_import_style (CRDocHandler * a_handler, if (a_uri_default_ns) { guchar *str = cr_string_dup2 (a_uri_default_ns) ; if (str) { - fprintf (stdout, str); - fprintf (stdout, "\n"); + fprintf (stdout, "%s\n", str); g_free (str); str = NULL; } @@ -255,7 +253,7 @@ test_property (CRDocHandler * a_handler, CRString * a_name, if (a_name) { guchar *name = cr_string_dup2 (a_name); if (name) { - fprintf (stdout, name); + fprintf (stdout, "%s", name); } if (a_expr) { fprintf (stdout, ": "); -- cgit v1.2.1