bc: fix for prev commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-12-06 12:06:16 +01:00
parent 4c30406df6
commit 1ff8862149

View File

@ -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;
}