diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 1726feed6..ddbd0670f 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -3199,7 +3199,7 @@ static void inp_stripcomments_line(char *s, bool cs) /* look for comments */ while ((c = *d) != '\0') { d++; - if (*d == ';') { + if (!cs && *d == ';') { break; } /* outside of .control section, and not in PS mode */