jer 14/10/26 10:58:53 Added: lanmap-81-printf-format.patch Log: Fix one format security warning. (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Revision Changes Path 1.1 net-misc/lanmap/files/lanmap-81-printf-format.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lanmap/files/lanmap-81-printf-format.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/lanmap/files/lanmap-81-printf-format.patch?rev=1.1&content-type=text/plain Index: lanmap-81-printf-format.patch =================================================================== --- a/src/misc.c +++ b/src/misc.c @@ -58,7 +58,7 @@ linebuf[64] = ' '; linebuf[56 + j - 1 + (j - 1 > 7) + 1] = '\n'; linebuf[56 + j - 1 + (j - 1 > 7) + 2] = '\0'; - printf(linebuf); + printf("%s", linebuf); #ifdef DEBUG if (strlen(linebuf) > 73) { fprintf(stderr, "line too long, wtf?!\n");
