summaryrefslogtreecommitdiff
path: root/usr.bin/xargs
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-01-05 00:23:58 +0000
committerXin LI <delphij@FreeBSD.org>2013-01-05 00:23:58 +0000
commitdf4110b6cf245e6b75f8172321cce04f90774186 (patch)
treee404ea58883dfe36020fcf3e5880585873bf0408 /usr.bin/xargs
parent5e9723e2718654b214e69e56174b3c1dfa0b6e69 (diff)
Notes
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r--usr.bin/xargs/strnsubst.c2
1 files changed, 1 insertions, 1 deletions
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");