diff options
author | Igor Pashev <igor.pashev@nexenta.com> | 2013-03-04 14:23:19 +0400 |
---|---|---|
committer | Igor Pashev <igor.pashev@nexenta.com> | 2013-03-04 14:23:19 +0400 |
commit | 59ad6e21eac75fcdd3aeb84b430e32a3366c2fec (patch) | |
tree | 4b042e46f76e90fc14ed63b6a2ad82c6804b540a /zip/patches/08-hardening-build-fix-1 | |
parent | ceaa1852eeab8151817dc3986136be98d586fa08 (diff) | |
download | cibs-pkgs-59ad6e21eac75fcdd3aeb84b430e32a3366c2fec.tar.gz |
zip 3.0 with Debian patches
Diffstat (limited to 'zip/patches/08-hardening-build-fix-1')
-rw-r--r-- | zip/patches/08-hardening-build-fix-1 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/zip/patches/08-hardening-build-fix-1 b/zip/patches/08-hardening-build-fix-1 new file mode 100644 index 0000000..94ddb71 --- /dev/null +++ b/zip/patches/08-hardening-build-fix-1 @@ -0,0 +1,25 @@ +From: Santiago Vila <sanvila@debian.org> +Subject: Use format specifier %s to print strings, not the string itself +Bug-Debian: http://bugs.debian.org/673476 +X-Debian-version: 3.0-5 + +--- a/zip.c ++++ b/zip.c +@@ -1028,7 +1028,7 @@ + + for (i = 0; i < sizeof(text)/sizeof(char *); i++) + { +- printf(text[i]); ++ printf("%s", text[i]); + putchar('\n'); + } + #ifdef DOS +@@ -1225,7 +1225,7 @@ + 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 */ |