sbase

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

commit 3b289d10d24d9adba6ca84d75be9d82b97a6cba4
parent 6f7a2e61971c47d2e7d44f27c2d5ed65dd86331b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri Apr 17 18:48:11 +0200

sed: use reallocarray (non-issue)

Diffstat:
sed.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;