summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 64387e17..657b39f3 100644
--- a/lib.c
+++ b/lib.c
@@ -3936,7 +3936,7 @@ val replace_str(val str_in, val items, val from, val to)
cnum t = c_num(to);
cnum l = c_num(len);
- string_extend(str_in, plus(len, len_diff));
+ string_extend(str_in, len_diff);
wmemmove(str_in->st.str + t + c_num(len_diff),
str_in->st.str + t, (l - t) + 1);
to = plus(from, len_it);