summaryrefslogtreecommitdiff
path: root/zip.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-07-02 20:41:11 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-07-02 20:41:11 -0700
commit97e225c0e8ee24f3fc9ff7c5cec63e74aefbb6a0 (patch)
treece54960fced49dbfa7d3b78987d3e137cfc8e7b5 /zip.c
parentbdb53ef1b17916cd039cc830280a1b453a7090d8 (diff)
downloadgzip-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zip.c b/zip.c
index dc4a21c..b0452ac 100644
--- a/zip.c
+++ b/zip.c
@@ -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;