mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.5 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/gzip/gzip-1.2.4b.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- gzip-1.2.4/gzip.c Thu Aug 19 15:39:43 1993
  20. +++ gzip-1.2.4b/gzip.c Tue Jan 8 21:44:18 2002
  21. @@ -1005,7 +1005,14 @@
  22. #ifdef NO_MULTIPLE_DOTS
  23. char *dot; /* pointer to ifname extension, or NULL */
  24. #endif
  25. + int max_suffix_len = (z_len > 3 ? z_len : 3);
  26. + /* Leave enough room in ifname or ofname for suffix: */
  27. + if (strlen(iname) >= sizeof(ifname) - max_suffix_len) {
  28. + strncpy(ifname, iname, sizeof(ifname) - 1);
  29. + /* last byte of ifname is already zero and never overwritten */
  30. + error("file name too long");
  31. + }
  32. strcpy(ifname, iname);
  33. /* If input file exists, return OK. */