[git commit] bc: fix for prev commit
Denys Vlasenko
vda.linux at googlemail.com
Thu Dec 6 11:06:16 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=1ff8862149706b81fec67ae496b3b2c12b6c793f
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
miscutils/bc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
len = v->len + strlen(str);
if (v->cap < len) bc_vec_grow(v, len - v->len);
- strcpy(v->v + v->len, str);
+ strcpy(v->v + v->len - 1, str);
v->len = len;
}
More information about the busybox-cvs
mailing list