sed: use reallocarray (non-issue)

This commit is contained in:
Hiltjo Posthuma 2015-04-17 18:48:11 +02:00 committed by sin
parent 1dbb848037
commit e2edbdcb87
1 changed files with 1 additions and 1 deletions

2
sed.c
View File

@ -1428,7 +1428,7 @@ cmd_s(Cmd *c)
lastre = re;
plen = re->re_nsub + 1;
pmatch = emalloc(plen * sizeof(regmatch_t));
pmatch = ereallocarray(NULL, plen, sizeof(regmatch_t));
*genbuf.str = '\0';
s = patt.str;