projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c2e9f
)
bc: do not needlessly use strcat
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Dec 2018 11:01:17 +0000
(12:01 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Dec 2018 11:01:17 +0000
(12:01 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
patch
|
blob
|
history
diff --git
a/miscutils/bc.c
b/miscutils/bc.c
index ad683168311e37ed914fdfc3ea42dcd730219e02..06b14848139df41cdc00bf50b276988b75550803 100644
(file)
--- 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);
- strc
at(v->v
, str);
+ strc
py(v->v + v->len
, str);
v->len = len;
}