sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit e2edbdcb87c89d69ab8cbf1a753ead75ccea5949
parent 1dbb84803794a0e518db2b35eba164f063e01a70
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 17 Apr 2015 18:48:11 +0200

sed: use reallocarray (non-issue)

Diffstat:
Msed.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sed.c b/sed.c @@ -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;