[BACK]Return to autoexec.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/autoexec.c between version 1.14 and 1.15

version 1.14, 2007/02/08 21:40:03 version 1.15, 2014/10/11 03:03:44
Line 39 
Line 39 
         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");

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15