Fix bug that led to comments not being ignored.

This commit is contained in:
Eric S. Raymond 2017-05-26 05:14:18 -04:00
parent 85cd6b0bd5
commit d39325f963
4 changed files with 553 additions and 2 deletions

4
misc.c
View file

@ -886,9 +886,9 @@ long I, VAL;
if (!oldstyle && OPENED == stdin)
fputs("> ", stdout);
do {
IGNORE(fgets(rawbuf,sizeof(INLINE)-1,OPENED));
IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,OPENED));
} while
(!feof(OPENED) && INLINE[1] == '#');
(!feof(OPENED) && rawbuf[0] == '#');
if (feof(OPENED)) {
if (logfp)
fclose(logfp);