X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;fp=command.c;h=407a1c9f33156fd16b06727a645e2748d3b52154;hp=d38f387d07f1d6160d83e8d838176d8221b32997;hb=27c08870ba172782f6406045007b6ff32a4f7329;hpb=f484411f1a48386975f55d1273750ca3c926aa9a diff --git a/command.c b/command.c index d38f387d..407a1c9f 100644 --- a/command.c +++ b/command.c @@ -834,7 +834,7 @@ static int run_command(struct command_context *cc, struct iovec *iov) for (i = 0; p < end; i++) p += strlen(p) + 1; argc = i; - argv = alloc((argc + 1) * sizeof(char *)); + argv = arr_alloc(argc + 1, sizeof(char *)); for (i = 0, p = iov->iov_base; p < end; i++) { argv[i] = para_strdup(p); p += strlen(p) + 1;