* gzip.c (get_method): Don't assume sizeof (long) == 4.
* zip.c (zip): Likewise.
while (get_char() != 0) /* null */ ;
}
if (part_nb == 1) {
- header_bytes = inptr + 2*sizeof(long); /* include crc and size */
+ header_bytes = inptr + 2*4; /* include crc and size */
}
} else if (memcmp(magic, PKZIP_MAGIC, 2) == 0 && inptr == 2
/* 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;