diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-10-30 06:12:17 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-10-30 06:12:17 +0000 |
commit | b53485bf0a7e9f03772be70d39cdcdb03e6d5845 (patch) | |
tree | 8e5c95dc418617e5360d7e5607da7f1198e9c3ad | |
parent | Merge branch 'bug/entity-h-clean' (diff) | |
parent | Appease gcc -Werror=format-security. (closes: #646321) (diff) | |
download | w3m-b53485bf0a7e9f03772be70d39cdcdb03e6d5845.tar.gz w3m-b53485bf0a7e9f03772be70d39cdcdb03e6d5845.zip |
Merge branch 'bug/646321'
-rw-r--r-- | acinclude.m4 | 2 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | 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 <<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"]) @@ -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, "<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); } |