diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/bc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
| 3016 | for (;;) { | 3016 | for (;;) { |
| 3017 | char c = peek_inbuf(); // strings can cross lines | 3017 | char c = peek_inbuf(); // strings can cross lines |
| 3018 | if (c == '\0') { | 3018 | if (c == '\0') { |
| 3019 | RETURN_STATUS(bc_error("unterminated string1")); | 3019 | RETURN_STATUS(bc_error("unterminated string")); |
| 3020 | } | 3020 | } |
| 3021 | if (c == '"') | 3021 | if (c == '"') |
| 3022 | break; | 3022 | break; |
| @@ -3060,7 +3060,7 @@ static BC_STATUS zbc_lex_comment(void) | |||
| 3060 | check_star: | 3060 | check_star: |
| 3061 | if (c == '*') { | 3061 | if (c == '*') { |
| 3062 | p->lex_inbuf++; | 3062 | p->lex_inbuf++; |
| 3063 | c = peek_inbuf(); | 3063 | c = *p->lex_inbuf; // no need to peek_inbuf() |
| 3064 | if (c == '/') | 3064 | if (c == '/') |
| 3065 | break; | 3065 | break; |
| 3066 | goto check_star; | 3066 | goto check_star; |
