diff options
Diffstat (limited to 'gunzip.c')
-rw-r--r-- | gunzip.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1120,11 +1120,11 @@ int in, out; /* input and output file descriptors */ | |||
1120 | if (res == 3) { | 1120 | if (res == 3) { |
1121 | errorMsg(memory_exhausted); | 1121 | errorMsg(memory_exhausted); |
1122 | } else if (res != 0) { | 1122 | } else if (res != 0) { |
1123 | errorMsg("invalid compressed data--format violated"); | 1123 | errorMsg("invalid compressed data--format violated\n"); |
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | } else { | 1126 | } else { |
1127 | errorMsg("internal error, invalid method"); | 1127 | errorMsg("internal error, invalid method\n"); |
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | /* Get the crc and original length */ | 1130 | /* Get the crc and original length */ |
@@ -1153,10 +1153,10 @@ int in, out; /* input and output file descriptors */ | |||
1153 | 1153 | ||
1154 | /* Validate decompression */ | 1154 | /* Validate decompression */ |
1155 | if (orig_crc != updcrc(outbuf, 0)) { | 1155 | if (orig_crc != updcrc(outbuf, 0)) { |
1156 | errorMsg("invalid compressed data--crc error"); | 1156 | errorMsg("invalid compressed data--crc error\n"); |
1157 | } | 1157 | } |
1158 | if (orig_len != (ulg) bytes_out) { | 1158 | if (orig_len != (ulg) bytes_out) { |
1159 | errorMsg("invalid compressed data--length error"); | 1159 | errorMsg("invalid compressed data--length error\n"); |
1160 | } | 1160 | } |
1161 | 1161 | ||
1162 | /* Check if there are more entries in a pkzip file */ | 1162 | /* Check if there are more entries in a pkzip file */ |