diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/lanmap/files/lanmap-81-printf-format.patch |
reinit the tree, so we can have metadata
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"); |