From 06cd783a8994b704c066aa59e11a6e76292d806e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 18 Dec 2014 21:26:14 +0200 Subject: More removal of extra unused byte. --- builtin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builtin.c') diff --git a/builtin.c b/builtin.c index 067b410e..42058ec6 100644 --- a/builtin.c +++ b/builtin.c @@ -2874,8 +2874,8 @@ set_how_many: lastmatchnonzero = false; - /* guesstimate how much room to allocate; +2 forces > 0 */ - buflen = textlen + (ampersands + 1) * repllen + 2; + /* guesstimate how much room to allocate; +1 forces > 0 */ + buflen = textlen + (ampersands + 1) * repllen + 1; emalloc(buf, char *, buflen + 1, "do_sub"); buf[buflen] = '\0'; -- cgit v1.2.3