--- examples/hocr/hocr.c.orig 2010-01-14 11:48:15.000000000 +0100 +++ examples/hocr/hocr.c 2010-01-14 11:49:10.000000000 +0100 @@ -1855,7 +1855,7 @@ } /* init the first line of data file */ - text_out = g_strdup_printf (html_debug_header); + text_out = g_strdup_printf ("%s", html_debug_header); ho_string_cat (s_data_out, text_out); g_free (text_out); } @@ -1875,7 +1875,7 @@ /* end of page */ if (text_out_html && s_text_out) { - text_out = g_strdup_printf (html_page_footer); + text_out = g_strdup_printf ("%s", html_page_footer); ho_string_cat (s_text_out, text_out); g_free (text_out); } @@ -1883,7 +1883,7 @@ /* close data file html fromat */ if (s_data_out) { - text_out = g_strdup_printf (html_debug_footer); + text_out = g_strdup_printf ("%s", html_debug_footer); ho_string_cat (s_data_out, text_out); g_free (text_out); } @@ -1906,7 +1906,7 @@ { /* if filename is '-' print to stdout */ if (text_out_filename[0] == '-' && text_out_filename[1] == '\0') - g_printf (text_out); + g_printf ("%s", text_out); else g_file_set_contents (text_out_filename, text_out, -1, &error);