diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-07-02 20:41:11 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-07-02 20:41:11 -0700 |
commit | 97e225c0e8ee24f3fc9ff7c5cec63e74aefbb6a0 (patch) | |
tree | ce54960fced49dbfa7d3b78987d3e137cfc8e7b5 /zip.c | |
parent | bdb53ef1b17916cd039cc830280a1b453a7090d8 (diff) | |
download | gzip-97e225c0e8ee24f3fc9ff7c5cec63e74aefbb6a0.tar.gz |
Decode FHCRC flag properly, as per Internet RFC 1952.
Problem reported by Greg Roelofs in:
http://lists.gnu.org/archive/html/bug-gzip/2010-06/msg00003.html
* gzip.c (discard_input_bytes): New function.
(get_method): Check header checksum, if given. We never generate it,
but other programs may.
* gzip.h (HEADER_CRC): Renamed from CONTINUATION. All uses changed.
* tailor.h [defined __50SERIES]: Remove PRIMOS stuff that was obsolete
anyway and would have made this patch harder to maintain.
(get_char, put_char): Remove.
* zip.c (zip): Use put_byte instead of the now-removed put_char.
Diffstat (limited to 'zip.c')
-rw-r--r-- | zip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ int zip(in, out) if (save_orig_name) { char *p = gzip_base_name (ifname); /* Don't save the directory part. */ do { - put_char(*p); + put_byte (*p); } while (*p++); } header_bytes = (off_t)outcnt; |