aboutsummaryrefslogtreecommitdiff
path: root/gzip.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-12 17:02:35 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-12 17:02:35 +0000
commit6a0c1de213cb8475ee435ff216f4037080926378 (patch)
tree088bc5b6e06d693ad8ca3eba078c0f3a8e302a24 /gzip.c
parent7b40def2e7abcaa81d71d4bc7717d184c329eb2d (diff)
downloadbusybox-w32-6a0c1de213cb8475ee435ff216f4037080926378.tar.gz
busybox-w32-6a0c1de213cb8475ee435ff216f4037080926378.tar.bz2
busybox-w32-6a0c1de213cb8475ee435ff216f4037080926378.zip
Always report the applet name when doing error reporting.
git-svn-id: svn://busybox.net/trunk/busybox@831 69ca8d6d-28ef-0310-b511-8ec308f3f277
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