aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/060_format-security.patch
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-10-30 06:06:31 +0000
committerTatsuya Kinoshita <tats@vega.ocn.ne.jp>2011-10-30 06:06:31 +0000
commitec56c9afb4fe086c04e40777742d830c04ed710b (patch)
tree5e39df1b0ab7369332d70f7783dca5d79ed45441 /debian/patches/060_format-security.patch
parentAppease missing-license-paragraph-in-dep5-copyright (diff)
downloadw3m-ec56c9afb4fe086c04e40777742d830c04ed710b.tar.gz
w3m-ec56c9afb4fe086c04e40777742d830c04ed710b.zip
Appease gcc -Werror=format-security. (closes: #646321)
Patch from 0.5.3-3ubuntu1 to appease gcc -Werror=format-security, provided by Colin Watson.
Diffstat (limited to 'debian/patches/060_format-security.patch')
-rw-r--r--debian/patches/060_format-security.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/debian/patches/060_format-security.patch b/debian/patches/060_format-security.patch
new file mode 100644
index 0000000..6ac0425
--- /dev/null
+++ b/debian/patches/060_format-security.patch
@@ -0,0 +1,44 @@
+Description: Appease gcc -Werror=format-security
+Author: Colin Watson <cjwatson@ubuntu.com>
+Forwarded: no
+Last-Update: 2011-10-23
+
+Index: b/acinclude.m4
+===================================================================
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -866,7 +866,7 @@
+ AC_TRY_COMPILE(
+ changequote(<<,>>)dnl
+ <<extern char *sys_errlist[];>>,
+-<<printf(sys_errlist[0]);>>,
++<<printf("%s", sys_errlist[0]);>>,
+ changequote([,])dnl
+ [have_sys_errlist="yes"; AC_DEFINE(HAVE_SYS_ERRLIST)],
+ [have_sys_errlist="no"])
+Index: b/configure
+===================================================================
+--- a/configure
++++ b/configure
+@@ -8986,7 +8986,7 @@
+ int
+ main ()
+ {
+-printf(sys_errlist[0]);
++printf("%s", sys_errlist[0]);
+ ;
+ return 0;
+ }
+Index: b/w3mbookmark.c
+===================================================================
+--- a/w3mbookmark.c
++++ b/w3mbookmark.c
+@@ -99,7 +99,7 @@
+ fprintf(f, "<body>\n<h1>Bookmarks</h1>\n");
+ fprintf(f, "<h2>%s</h2>\n<ul>\n", section);
+ fprintf(f, "<li><a href=\"%s\">%s</a>\n", url, title);
+- fprintf(f, end_section);
++ fprintf(f, "%s", end_section);
+ fprintf(f, "</ul>\n</body>\n</html>\n");
+ fclose(f);
+ }