summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko2018-12-06 12:06:16 +0100
committerDenys Vlasenko2018-12-06 12:06:16 +0100
commit1ff8862149706b81fec67ae496b3b2c12b6c793f (patch)
tree47c95257dbbe00592a35d453060b5e0fd47124d8 /miscutils
parent4c30406df6d44447a3ae147f3b85c6726bc0f739 (diff)
downloadbusybox-1ff8862149706b81fec67ae496b3b2c12b6c793f.zip
busybox-1ff8862149706b81fec67ae496b3b2c12b6c793f.tar.gz
bc: fix for prev commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/bc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 06b1484..19e567b 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;
}