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

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