Return to autoexec.c CVS log | Up to [local] / src / usr.bin / mg |
version 1.14, 2007/02/08 21:40:03 | version 1.15, 2014/10/11 03:03:44 | ||
---|---|---|---|
|
|
||
SLIST_FOREACH(ae, &autos, next) { | SLIST_FOREACH(ae, &autos, next) { | ||
if (fnmatch(ae->pattern, fname, 0) == 0) { | if (fnmatch(ae->pattern, fname, 0) == 0) { | ||
if (used >= have) { | if (used >= have) { | ||
npfl = realloc(pfl, (have + AUTO_GROW + 1) * | npfl = reallocarray(pfl, have + AUTO_GROW + 1, | ||
sizeof(PF)); | sizeof(PF)); | ||
if (npfl == NULL) | if (npfl == NULL) | ||
panic("out of memory"); | panic("out of memory"); |