[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.4 and 1.5

version 1.4, 2004/07/22 01:25:24 version 1.5, 2005/03/10 16:58:57
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) {
                                 /*  
                                  * XXX - realloc(NULL, ...) is not really  
                                  *       portable  
                                  */  
                                 npfl = realloc(pfl, (have + 8 + 1) * sizeof(PF));                                  npfl = realloc(pfl, (have + 8 + 1) * sizeof(PF));
                                 if (npfl == NULL)                                  if (npfl == NULL)
                                         panic("out of memory");                                          panic("out of memory");

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5