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:
c2265f5
)
bc: unbreak CONFIG_FEATURE_BC_SIGNALS=y config
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 12 Dec 2018 22:25:13 +0000
(23:25 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 12 Dec 2018 22:25:13 +0000
(23:25 +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 70ef0fa4a18c7e33e1761f7e9164f3bbc97e4c06..c7e0e39e07ba870c28e46101e078b348b495aa0d 100644
(file)
--- a/
miscutils/bc.c
+++ b/
miscutils/bc.c
@@
-3038,7
+3038,7
@@
static BC_STATUS zbc_lex_string(BcLex *l)
// This check makes sense only if size_t is (much) larger than BC_MAX_STRING.
if (SIZE_MAX > (BC_MAX_STRING | 0xff)) {
if (len > BC_MAX_STRING)
- RETURN_STATUS(("string too long: must be [1,"BC_MAX_STRING_STR"]"));
+ RETURN_STATUS(
bc_error
("string too long: must be [1,"BC_MAX_STRING_STR"]"));
}
bc_vec_string(&l->t.v, len, l->buf + l->i);