aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/pending/bc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/bc.c b/toys/pending/bc.c
index 142c0ce2..bb5d86cb 100644
--- a/toys/pending/bc.c
+++ b/toys/pending/bc.c
@@ -952,8 +952,8 @@ void bc_vec_concat(BcVec *v, char *str) {
if (!v->len) bc_vec_pushByte(v, '\0');
len = strlen(str);
- bc_vec_grow(v, len+1);
- strcpy(v->v+v->len, str);
+ bc_vec_grow(v, len);
+ strcpy(v->v+v->len-1, str);
v->len += len;
}