Return to ascmagic.c CVS log | Up to [local] / src / usr.bin / file |
version 1.11, 2009/10/27 23:59:37 | version 1.12, 2014/05/18 17:50:11 | ||
---|---|---|---|
|
|
||
while (nbytes > 1 && buf[nbytes - 1] == '\0') | while (nbytes > 1 && buf[nbytes - 1] == '\0') | ||
nbytes--; | nbytes--; | ||
if ((nbuf = calloc(1, (nbytes + 1) * sizeof(nbuf[0]))) == NULL) | if ((nbuf = calloc((nbytes + 1), sizeof(nbuf[0]))) == NULL) | ||
goto done; | goto done; | ||
if ((ubuf = calloc(1, (nbytes + 1) * sizeof(ubuf[0]))) == NULL) | if ((ubuf = calloc((nbytes + 1), sizeof(ubuf[0]))) == NULL) | ||
goto done; | goto done; | ||
/* | /* |