[Debian-hebrew-package] r1038 - in /pkg/hocr/trunk/debian: changelog patches/format_string.patch patches/series
tzafrir at users.alioth.debian.org
tzafrir at users.alioth.debian.org
Mon Jan 23 17:58:06 UTC 2017
Author: tzafrir
Date: Mon Jan 23 17:58:06 2017
New Revision: 1038
URL: http://svn.debian.org/wsvn/debian-hebrew/?sc=1&rev=1038
Log:
format_string.patch: fix format-string-related warnings.
Added:
pkg/hocr/trunk/debian/patches/format_string.patch
Modified:
pkg/hocr/trunk/debian/changelog
pkg/hocr/trunk/debian/patches/series
Modified: pkg/hocr/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/hocr/trunk/debian/changelog?rev=1038&op=diff
==============================================================================
--- pkg/hocr/trunk/debian/changelog (original)
+++ pkg/hocr/trunk/debian/changelog Mon Jan 23 17:58:06 2017
@@ -1,6 +1,7 @@
hocr (0.10.17-3) UNRELEASED; urgency=medium
* Remove Baruch Even from Uploaders (Closes: #760010, #760017)
+ * format_string.patch: fix format-string-related warnings.
-- Tzafrir Cohen <tzafrir at debian.org> Mon, 23 Jan 2017 19:44:16 +0200
Added: pkg/hocr/trunk/debian/patches/format_string.patch
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/hocr/trunk/debian/patches/format_string.patch?rev=1038&op=file
==============================================================================
--- pkg/hocr/trunk/debian/patches/format_string.patch (added)
+++ pkg/hocr/trunk/debian/patches/format_string.patch Mon Jan 23 17:58:06 2017
@@ -0,0 +1,50 @@
+From: Tzafrir Cohen <tzafrir at debian.org>
+Subject: fix several format string issues in hocr
+
+--- a/examples/hocr/hocr.c
++++ b/examples/hocr/hocr.c
+@@ -590,7 +590,7 @@ hocr_image_processing_with_debug (ho_pix
+ /* prompt user scale */
+ if (debug && scale_by)
+ if (scale_by == 1)
+- g_print (" user no scaling.\n", scale_by);
++ g_print (" user no scaling.\n");
+ else
+ g_print (" user scale by %d.\n", scale_by);
+
+@@ -1855,7 +1855,7 @@ main (int argc, char *argv[])
+ }
+
+ /* 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 @@ main (int argc, char *argv[])
+ /* 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 @@ main (int argc, char *argv[])
+ /* 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 @@ main (int argc, char *argv[])
+ {
+ /* 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);
+
Modified: pkg/hocr/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/debian-hebrew/pkg/hocr/trunk/debian/patches/series?rev=1038&op=diff
==============================================================================
--- pkg/hocr/trunk/debian/patches/series (original)
+++ pkg/hocr/trunk/debian/patches/series Mon Jan 23 17:58:06 2017
@@ -2,3 +2,4 @@
no-scanner.patch
manpage-whatis.patch
sane-pygtk-desktop-icon.patch
+format_string.patch
More information about the Debian-hebrew-package
mailing list