1
0

008-hardening-build-fix-1.patch 743 B

12345678910111213141516171819202122232425
  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. --- a/zip.c
  6. +++ b/zip.c
  7. @@ -1028,7 +1028,7 @@ local void help_extended()
  8. for (i = 0; i < sizeof(text)/sizeof(char *); i++)
  9. {
  10. - printf(text[i]);
  11. + printf("%s", text[i]);
  12. putchar('\n');
  13. }
  14. #ifdef DOS
  15. @@ -1225,7 +1225,7 @@ local void version_info()
  16. CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE);
  17. for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++)
  18. {
  19. - printf(cryptnote[i]);
  20. + printf("%s", cryptnote[i]);
  21. putchar('\n');
  22. }
  23. ++i; /* crypt support means there IS at least one compilation option */