From: Denys Vlasenko Date: Wed, 26 Dec 2018 20:01:41 +0000 (+0100) Subject: bc: undo debugging change, add a small optimization X-Git-Tag: 1_30_0~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8af11087b20e2e9d19836a070ea460b7bec82a8f;p=oweals%2Fbusybox.git bc: undo debugging change, add a small optimization Signed-off-by: Denys Vlasenko --- diff --git a/miscutils/bc.c b/miscutils/bc.c index cf04e9ff1..af94981ec 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -3016,7 +3016,7 @@ static BC_STATUS zbc_lex_string(void) for (;;) { char c = peek_inbuf(); // strings can cross lines if (c == '\0') { - RETURN_STATUS(bc_error("unterminated string1")); + RETURN_STATUS(bc_error("unterminated string")); } if (c == '"') break; @@ -3060,7 +3060,7 @@ static BC_STATUS zbc_lex_comment(void) check_star: if (c == '*') { p->lex_inbuf++; - c = peek_inbuf(); + c = *p->lex_inbuf; // no need to peek_inbuf() if (c == '/') break; goto check_star;