diff options
Diffstat (limited to 'net-misc/lanmap/files/lanmap-81-printf-format.patch')
-rw-r--r-- | net-misc/lanmap/files/lanmap-81-printf-format.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/lanmap/files/lanmap-81-printf-format.patch b/net-misc/lanmap/files/lanmap-81-printf-format.patch new file mode 100644 index 000000000000..cbe330434f20 --- /dev/null +++ b/net-misc/lanmap/files/lanmap-81-printf-format.patch @@ -0,0 +1,11 @@ +--- 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"); |