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:
4c30406
)
bc: fix for prev commit
author
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Dec 2018 11:06:16 +0000
(12:06 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Thu, 6 Dec 2018 11:06:16 +0000
(12:06 +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 06b14848139df41cdc00bf50b276988b75550803..19e567b883b1ddd7c743c2192bf4005049aed7e9 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);
- strcpy(v->v + v->len, str);
+ strcpy(v->v + v->len
- 1
, str);
v->len = len;
}