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

Diff for /src/usr.bin/make/varmodifiers.c between version 1.37 and 1.38

version 1.37, 2014/05/12 19:11:19 version 1.38, 2014/05/18 08:08:50
Line 1414 
Line 1414 
                 p2.nsub = 1;                  p2.nsub = 1;
         if (p2.nsub > 10)          if (p2.nsub > 10)
                 p2.nsub = 10;                  p2.nsub = 10;
         p2.matches = emalloc(p2.nsub * sizeof(regmatch_t));          p2.matches = ereallocarray(NULL, p2.nsub, sizeof(regmatch_t));
         result = VarModify((char *)s, VarRESubstitute, &p2);          result = VarModify((char *)s, VarRESubstitute, &p2);
         regfree(&p2.re);          regfree(&p2.re);
         free(p2.matches);          free(p2.matches);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38