From ec56c9afb4fe086c04e40777742d830c04ed710b Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 30 Oct 2011 15:06:31 +0900 Subject: Appease gcc -Werror=format-security. (closes: #646321) Patch from 0.5.3-3ubuntu1 to appease gcc -Werror=format-security, provided by Colin Watson. --- debian/patches/060_format-security.patch | 44 ++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 45 insertions(+) create mode 100644 debian/patches/060_format-security.patch (limited to 'debian/patches') 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 +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 + <>, +-<>, ++<>, + 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, "\n

Bookmarks

\n"); + fprintf(f, "

%s

\n
    \n", section); + fprintf(f, "
  • %s\n", url, title); +- fprintf(f, end_section); ++ fprintf(f, "%s", end_section); + fprintf(f, "
\n\n\n"); + fclose(f); + } diff --git a/debian/patches/series b/debian/patches/series index 9df16a5..71b0d9c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ 030_pager-s-option.patch 040_link_gcc45.patch 050_entity-h-clean.patch +060_format-security.patch -- cgit v1.2.3