From: Eric Andersen Date: Mon, 19 Nov 2001 10:49:30 +0000 (-0000) Subject: Call xmalloc before realloc X-Git-Tag: 0_60_2~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d81891a2e6d52a35b3b633f95716d7a3a88f60c9;p=oweals%2Fbusybox.git Call xmalloc before realloc --- diff --git a/findutils/xargs.c b/findutils/xargs.c index 5d64d0c9f..c63518fe5 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 */