← Commit list

4c30406df

Denys Vlasenko
Denys Vlasenko
2018-12-06
SUCCESS Duration: 151s

Subject

bc: do not needlessly use strcat

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/bc.c+1 -1
@@ -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;
}