aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-18 21:26:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-18 21:26:14 +0200
commit06cd783a8994b704c066aa59e11a6e76292d806e (patch)
tree335a4731980ed21d3e67a872a81e065350a0b345 /builtin.c
parent6e786e9ea47966a9cac7cfef4a4079ac379580b0 (diff)
downloadegawk-06cd783a8994b704c066aa59e11a6e76292d806e.tar.gz
egawk-06cd783a8994b704c066aa59e11a6e76292d806e.tar.bz2
egawk-06cd783a8994b704c066aa59e11a6e76292d806e.zip
More removal of extra unused byte.
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c4
1 files changed, 2 insertions, 2 deletions
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';