summaryrefslogtreecommitdiff
path: root/gzip.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-12 17:02:35 +0000
committerMatt Kraai <kraai@debian.org>2000-07-12 17:02:35 +0000
commitbe84cd4ef66f8956eb4c7ff0542fd1ba823a70e7 (patch)
tree088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /gzip.c
parente58771e73c0d8589a458ede4088f5ba70eff917b (diff)
downloadbusybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.gz
busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.tar.bz2
busybox-w32-be84cd4ef66f8956eb4c7ff0542fd1ba823a70e7.zip
Always report the applet name when doing error reporting.
Diffstat (limited to 'gzip.c')
-rw-r--r--gzip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gzip.c b/gzip.c
index 9248cfecd..8bc67d9c6 100644
--- a/gzip.c
+++ b/gzip.c
@@ -127,7 +127,7 @@ extern int method; /* compression method */
127# define DECLARE(type, array, size) type * array 127# define DECLARE(type, array, size) type * array
128# define ALLOC(type, array, size) { \ 128# define ALLOC(type, array, size) { \
129 array = (type*)calloc((size_t)(((size)+1L)/2), 2*sizeof(type)); \ 129 array = (type*)calloc((size_t)(((size)+1L)/2), 2*sizeof(type)); \
130 if (array == NULL) errorMsg(memory_exhausted, "gzip"); \ 130 if (array == NULL) errorMsg(memory_exhausted); \
131 } 131 }
132# define FREE(array) {if (array != NULL) free(array), array=NULL;} 132# define FREE(array) {if (array != NULL) free(array), array=NULL;}
133#else 133#else
@@ -3251,7 +3251,7 @@ char *env; /* name of environment variable */
3251 nargv = (char **) calloc(*argcp + 1, sizeof(char *)); 3251 nargv = (char **) calloc(*argcp + 1, sizeof(char *));
3252 3252
3253 if (nargv == NULL) 3253 if (nargv == NULL)
3254 errorMsg(memory_exhausted, "gzip"); 3254 errorMsg(memory_exhausted);
3255 oargv = *argvp; 3255 oargv = *argvp;
3256 *argvp = nargv; 3256 *argvp = nargv;
3257 3257