diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/unzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/unzip.c b/libbb/unzip.c index 7de28930a..40b8af427 100644 --- a/libbb/unzip.c +++ b/libbb/unzip.c | |||
@@ -997,7 +997,7 @@ extern int unzip(FILE *l_in_file, FILE *l_out_file) | |||
997 | fread(buf, 1, 8, in_file); | 997 | fread(buf, 1, 8, in_file); |
998 | 998 | ||
999 | /* Validate decompression - crc */ | 999 | /* Validate decompression - crc */ |
1000 | if (((buf[0] | (buf[1] << 8)) |((buf[2] | (buf[3] << 8)) << 16)) != (crc ^ 0xffffffffL)) { | 1000 | if ((unsigned int)((buf[0] | (buf[1] << 8)) |((buf[2] | (buf[3] << 8)) << 16)) != (crc ^ 0xffffffffL)) { |
1001 | error_msg("invalid compressed data--crc error"); | 1001 | error_msg("invalid compressed data--crc error"); |
1002 | } | 1002 | } |
1003 | /* Validate decompression - size */ | 1003 | /* Validate decompression - size */ |