summaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorEric Andersen2001-11-19 10:49:30 +0000
committerEric Andersen2001-11-19 10:49:30 +0000
commitd81891a2e6d52a35b3b633f95716d7a3a88f60c9 (patch)
tree3416c9abee1a69819dc28f515182b58bac087c53 /findutils
parent43626d7671cf1b4c7adac777d421ad784a400422 (diff)
downloadbusybox-d81891a2e6d52a35b3b633f95716d7a3a88f60c9.zip
busybox-d81891a2e6d52a35b3b633f95716d7a3a88f60c9.tar.gz
Call xmalloc before realloc
Diffstat (limited to 'findutils')
-rw-r--r--findutils/xargs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 5d64d0c..c63518f 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -50,6 +50,7 @@ int xargs_main(int argc, char **argv)
/* concatenate all the arguments passed to xargs together */
int i;
int len = 1; /* for the '\0' */
+ cmd_to_be_executed = xmalloc(80);
for (i = 1; i < argc; i++) {
len += strlen(argv[i]);
len += 1; /* for the space between the args */