summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-01-05 00:23:58 +0000
committerdelphij <delphij@FreeBSD.org>2013-01-05 00:23:58 +0000
commitd54f5d0381b6d0126d4c10d2a25e715a753c9849 (patch)
treee404ea58883dfe36020fcf3e5880585873bf0408 /usr.bin
parent604b10857db1d0d52761b12ecca7150ff74190d8 (diff)
downloadFreeBSD-src-d54f5d0381b6d0126d4c10d2a25e715a753c9849.zip
FreeBSD-src-d54f5d0381b6d0126d4c10d2a25e715a753c9849.tar.gz
Follow calloc convention in other code, this is functionally identical
to its previous form.
Diffstat (limited to 'usr.bin')
-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 33366b6..304e47b 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");
OpenPOWER on IntegriCloud