From: Denys Vlasenko Date: Thu, 6 Dec 2018 11:01:17 +0000 (+0100) Subject: bc: do not needlessly use strcat X-Git-Tag: 1_30_0~276 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c30406df6d44447a3ae147f3b85c6726bc0f739;p=oweals%2Fbusybox.git bc: do not needlessly use strcat Signed-off-by: Denys Vlasenko --- diff --git a/miscutils/bc.c b/miscutils/bc.c index ad6831683..06b148481 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); - strcat(v->v, str); + strcpy(v->v + v->len, str); v->len = len; }