aboutsummaryrefslogtreecommitdiff
path: root/miscutils/bc.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/bc.c')
-rw-r--r--miscutils/bc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 06b148481..19e567b88 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -1148,7 +1148,7 @@ static void bc_vec_concat(BcVec *v, const char *str)
1148 len = v->len + strlen(str); 1148 len = v->len + strlen(str);
1149 1149
1150 if (v->cap < len) bc_vec_grow(v, len - v->len); 1150 if (v->cap < len) bc_vec_grow(v, len - v->len);
1151 strcpy(v->v + v->len, str); 1151 strcpy(v->v + v->len - 1, str);
1152 1152
1153 v->len = len; 1153 v->len = len;
1154} 1154}