summaryrefslogtreecommitdiff
path: root/source/a/infozip/zip-patches/zip-3.0-format-security.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/infozip/zip-patches/zip-3.0-format-security.patch')
-rw-r--r--source/a/infozip/zip-patches/zip-3.0-format-security.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/a/infozip/zip-patches/zip-3.0-format-security.patch b/source/a/infozip/zip-patches/zip-3.0-format-security.patch
new file mode 100644
index 00000000..54ce2e66
--- /dev/null
+++ b/source/a/infozip/zip-patches/zip-3.0-format-security.patch
@@ -0,0 +1,20 @@
+--- a/zip.c
++++ a/zip.c
+@@ -1028,7 +1028,7 @@ local void help_extended()
+
+ for (i = 0; i < sizeof(text)/sizeof(char *); i++)
+ {
+- printf(text[i]);
++ printf("%s", text[i]);
+ putchar('\n');
+ }
+ #ifdef DOS
+@@ -1225,7 +1225,7 @@ local void version_info()
+ CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
+ for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
+ {
+- printf(cryptnote[i]);
++ printf("%s", cryptnote[i]);
+ putchar('\n');
+ }
+ ++i; /* crypt support means there IS at least one compilation option */