Follow calloc convention in other code, this is functionally identical
to its previous form.
This commit is contained in:
parent
5e9723e271
commit
df4110b6cf
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user