aboutsummaryrefslogtreecommitdiff
path: root/findutils/xargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/xargs.c')
-rw-r--r--findutils/xargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index e46708303..d067a3f48 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -503,7 +503,7 @@ int xargs_main(int argc, char **argv)
503 503
504 /* allocating pointers for execvp: 504 /* allocating pointers for execvp:
505 a*arg, n*arg from stdin, NULL */ 505 a*arg, n*arg from stdin, NULL */
506 args = xcalloc(n + a + 1, sizeof(char *)); 506 args = xzalloc((n + a + 1) * sizeof(char *));
507 507
508 /* Store the command to be executed 508 /* Store the command to be executed
509 (taken from the command line) */ 509 (taken from the command line) */