summaryrefslogtreecommitdiff
path: root/zip.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2010-07-01 11:46:56 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2010-07-01 11:46:56 -0700
commitbdb53ef1b17916cd039cc830280a1b453a7090d8 (patch)
treeeef671feda08ed2dd58cf4dc0aa5ef58c5fd9fe5 /zip.c
parent868c7688303f7167635961a5a8af747885a3fdff (diff)
downloadgzip-bdb53ef1b17916cd039cc830280a1b453a7090d8.tar.gz
Don't assume that sizeof (long) == 4 when computing statistics.
* gzip.c (get_method): Don't assume sizeof (long) == 4. * zip.c (zip): Likewise.
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 a30a561..dc4a21c 100644
--- a/zip.c
+++ b/zip.c
@@ -96,7 +96,7 @@ int zip(in, out)
/* Write the crc and uncompressed size */
put_long(crc);
put_long((ulg)bytes_in);
- header_bytes += 2*sizeof(long);
+ header_bytes += 2*4;
flush_outbuf();
return OK;