Follow calloc convention in other code, this is functionally identical

to its previous form.
This commit is contained in:
delphij 2013-01-05 00:23:58 +00:00
parent 604b10857d
commit d54f5d0381

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