Commit 301a9799 authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita

Appease gcc -Werror=format-security. (closes: #646321)

Patch from 0.5.3-3ubuntu1 to appease gcc -Werror=format-security,
provided by Colin Watson.
parent 5397d09e
......@@ -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;
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment