blob: a0c3a91eeec064b2305c3873a8a95669c750ea9b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From: Santiago Vila <sanvila@debian.org>
2Subject: Use format specifier %s to print strings, not the string itself
3Bug-Debian: http://bugs.debian.org/673476
4X-Debian-version: 3.0-5
5
6--- a/zip.c
7+++ b/zip.c
8@@ -1028,7 +1028,7 @@ local void help_extended()
9
10 for (i = 0; i < sizeof(text)/sizeof(char *); i++)
11 {
12- printf(text[i]);
13+ printf("%s", text[i]);
14 putchar('\n');
15 }
16 #ifdef DOS
17@@ -1225,7 +1225,7 @@ local void version_info()
18 CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
19 for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
20 {
21- printf(cryptnote[i]);
22+ printf("%s", cryptnote[i]);
23 putchar('\n');
24 }
25 ++i; /* crypt support means there IS at least one compilation option */