aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-14 21:29:24 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-14 21:29:24 +0200
commit6e786e9ea47966a9cac7cfef4a4079ac379580b0 (patch)
tree5765d8bf454f46a49ee51a5a23a38e10a57bcd1b /profile.c
parentc55956b6a10d0a4d0b151c1be976dc9c344c1103 (diff)
downloadegawk-6e786e9ea47966a9cac7cfef4a4079ac379580b0.tar.gz
egawk-6e786e9ea47966a9cac7cfef4a4079ac379580b0.tar.bz2
egawk-6e786e9ea47966a9cac7cfef4a4079ac379580b0.zip
Fix to previous change. Now passes valgrind.
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 45eb562c..886f2b0c 100644
--- a/profile.c
+++ b/profile.c
@@ -1505,7 +1505,7 @@ pp_concat(int nargs)
len = -delimlen;
for (i = nargs; i >= 1; i--) {
r = pp_args[i] = pp_pop();
- len += r->pp_len + delimlen + 1;
+ len += r->pp_len + delimlen + 2;
}
emalloc(str, char *, len + 1, "pp_concat");