Sync code with the error report: calloc(number, 1) is equivalent to
malloc(number).
This commit is contained in:
parent
6ee81d6ffb
commit
3a6b8b21d2
@ -51,7 +51,7 @@ main(void)
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (len <= 0)
|
||||
exit(0);
|
||||
sxp = xp = calloc(len, 1);
|
||||
sxp = xp = malloc(len);
|
||||
if (sxp == NULL)
|
||||
err(1, "malloc()");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user