diff options
author | Xin LI <delphij@FreeBSD.org> | 2013-01-05 00:23:58 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2013-01-05 00:23:58 +0000 |
commit | df4110b6cf245e6b75f8172321cce04f90774186 (patch) | |
tree | e404ea58883dfe36020fcf3e5880585873bf0408 /usr.bin/xargs | |
parent | 5e9723e2718654b214e69e56174b3c1dfa0b6e69 (diff) |
Notes
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 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"); |