Sync code with the error report: calloc(number, 1) is equivalent to

malloc(number).
This commit is contained in:
Pawel Jakub Dawidek 2005-08-19 11:03:49 +00:00
parent 6ee81d6ffb
commit 3a6b8b21d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149276

View File

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