Return to varmodifiers.c CVS log | Up to [local] / src / usr.bin / make |
version 1.37, 2014/05/12 19:11:19 | version 1.38, 2014/05/18 08:08:50 | ||
---|---|---|---|
|
|
||
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); |