summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/bc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 9c7e69f..dc9a7da 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7088,10 +7088,13 @@ static BC_STATUS zbc_vm_stdin(void)
string++;
if (c == '/' && *string == '*') {
comment = true;
- break;
+ string++;
+ continue;
}
- if (c == '*' && *string == '/')
+ if (c == '*' && *string == '/') {
comment = false;
+ string++;
+ }
}
if (str || comment || string[-2] == '\\') {
bc_vec_concat(&buffer, buf.v);