From 301a9799615268cd517793ce1f368ef95df14410 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sun, 30 Oct 2011 15:11:39 +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. --- acinclude.m4 | 2 +- configure | 2 +- w3mbookmark.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index e4ccc3d..52c8874 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -866,7 +866,7 @@ AC_MSG_CHECKING(for sys_errlist) AC_TRY_COMPILE( changequote(<<,>>)dnl <>, -<>, +<>, changequote([,])dnl [have_sys_errlist="yes"; AC_DEFINE(HAVE_SYS_ERRLIST)], [have_sys_errlist="no"]) diff --git a/configure b/configure index 4c1bc06..2e37bb1 100755 --- a/configure +++ b/configure @@ -8986,7 +8986,7 @@ extern char *sys_errlist[]; int main () { -printf(sys_errlist[0]); +printf("%s", sys_errlist[0]); ; return 0; } diff --git a/w3mbookmark.c b/w3mbookmark.c index 4355536..fcbad11 100644 --- a/w3mbookmark.c +++ b/w3mbookmark.c @@ -99,7 +99,7 @@ create_new_bookmark(char *bmark, char *section, char *title, char *url, 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); } -- cgit v1.2.3