diff options
author | delphij <delphij@FreeBSD.org> | 2013-01-05 00:23:58 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-01-05 00:23:58 +0000 |
commit | d54f5d0381b6d0126d4c10d2a25e715a753c9849 (patch) | |
tree | e404ea58883dfe36020fcf3e5880585873bf0408 /usr.bin/xargs | |
parent | 604b10857db1d0d52761b12ecca7150ff74190d8 (diff) | |
download | FreeBSD-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/xargs')
-rw-r--r-- | usr.bin/xargs/strnsubst.c | 2 |
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"); |