Follow calloc convention in other code, this is functionally identical
to its previous form.
This commit is contained in:
parent
604b10857d
commit
d54f5d0381
@ -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