From 081e38483ec55dcfca3d92434fe94f0777ed962d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 3 Aug 2006 20:07:35 +0000 Subject: Remove xcalloc() and convert its callers to xzalloc(). About half of them were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. --- findutils/xargs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'findutils/xargs.c') 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) /* allocating pointers for execvp: a*arg, n*arg from stdin, NULL */ - args = xcalloc(n + a + 1, sizeof(char *)); + args = xzalloc((n + a + 1) * sizeof(char *)); /* Store the command to be executed (taken from the command line) */ -- cgit v1.2.3