bc: fix for prev commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
4c30406df6
commit
1ff8862149
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user