diff options
Diffstat (limited to 'gunzip.c')
-rw-r--r-- | gunzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -212,7 +212,7 @@ extern int method; /* compression method */ | |||
212 | # define DECLARE(type, array, size) type * array | 212 | # define DECLARE(type, array, size) type * array |
213 | # define ALLOC(type, array, size) { \ | 213 | # define ALLOC(type, array, size) { \ |
214 | array = (type*)calloc((size_t)(((size)+1L)/2), 2*sizeof(type)); \ | 214 | array = (type*)calloc((size_t)(((size)+1L)/2), 2*sizeof(type)); \ |
215 | if (array == NULL) errorMsg(memory_exhausted, "gunzip"); \ | 215 | if (array == NULL) errorMsg(memory_exhausted); \ |
216 | } | 216 | } |
217 | # define FREE(array) {if (array != NULL) free(array), array=NULL;} | 217 | # define FREE(array) {if (array != NULL) free(array), array=NULL;} |
218 | #else | 218 | #else |
@@ -930,7 +930,7 @@ int in, out; /* input and output file descriptors */ | |||
930 | int res = inflate(); | 930 | int res = inflate(); |
931 | 931 | ||
932 | if (res == 3) { | 932 | if (res == 3) { |
933 | errorMsg(memory_exhausted, "gunzip"); | 933 | errorMsg(memory_exhausted); |
934 | } else if (res != 0) { | 934 | } else if (res != 0) { |
935 | errorMsg("invalid compressed data--format violated"); | 935 | errorMsg("invalid compressed data--format violated"); |
936 | } | 936 | } |