OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | From: Santiago Vila <sanvila@debian.org> |
2 | Subject: Use format specifier %s to print strings, not the string itself |
||
3 | Bug-Debian: http://bugs.debian.org/673476 |
||
4 | X-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 */ |