summaryrefslogtreecommitdiff
path: root/opt/zip/zip-3.0-format-security.patch
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/zip/zip-3.0-format-security.patch
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/zip/zip-3.0-format-security.patch')
-rw-r--r--opt/zip/zip-3.0-format-security.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/opt/zip/zip-3.0-format-security.patch b/opt/zip/zip-3.0-format-security.patch
new file mode 100644
index 0000000..54ce2e6
--- /dev/null
+++ b/opt/zip/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 */