1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Follow calloc convention in other code, this is functionally identical

to its previous form.
This commit is contained in:
Xin LI 2013-01-05 00:23:58 +00:00
parent 5e9723e271
commit df4110b6cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245050

View File

@ -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");