From df4110b6cf245e6b75f8172321cce04f90774186 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 5 Jan 2013 00:23:58 +0000 Subject: [PATCH] Follow calloc convention in other code, this is functionally identical to its previous form. --- usr.bin/xargs/strnsubst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/xargs/strnsubst.c b/usr.bin/xargs/strnsubst.c index 33366b6a3627..304e47bdf3f4 100644 --- a/usr.bin/xargs/strnsubst.c +++ b/usr.bin/xargs/strnsubst.c @@ -48,7 +48,7 @@ strnsubst(char **str, const char *match, const char *replstr, size_t maxsize) match = NULL; maxsize = strlen(s1) + 1; } - s2 = calloc(maxsize, 1); + s2 = calloc(1, maxsize); if (s2 == NULL) err(1, "calloc");