From d2643712dd5662f518d72db46f652dba4ce958ee Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 26 May 2017 05:14:18 -0400 Subject: [PATCH 1/1] Fix bug that led to comments bnot being ignored. --- misc.c | 4 ++-- tests/death-jump.chk | 4 ---- tests/dwarf.chk | 4 ---- tests/quit.chk | 4 ---- 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/misc.c b/misc.c index 8ea3db4..a656cbc 100644 --- a/misc.c +++ b/misc.c @@ -888,9 +888,9 @@ long I, VAL; if (!oldstyle && SETUP && 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 && OPENED == stdin) fclose(logfp); diff --git a/tests/death-jump.chk b/tests/death-jump.chk index 6bc9e72..55e648c 100644 --- a/tests/death-jump.chk +++ b/tests/death-jump.chk @@ -1,10 +1,6 @@ Welcome to Adventure!! Would you like instructions? -> ##First death by jump into fissure - -Please stick to 1- and 2-word commands. - > n You are standing at the end of a road before a small brick building. diff --git a/tests/dwarf.chk b/tests/dwarf.chk index d2c9d79..fcf3a1e 100644 --- a/tests/dwarf.chk +++ b/tests/dwarf.chk @@ -1,10 +1,6 @@ Welcome to Adventure!! Would you like instructions? -> ## Dwarf appears in soutth side chamber, where the coins are. - -Please stick to 1- and 2-word commands. - > n You are standing at the end of a road before a small brick building. diff --git a/tests/quit.chk b/tests/quit.chk index 183d633..87a8d98 100644 --- a/tests/quit.chk +++ b/tests/quit.chk @@ -1,10 +1,6 @@ Welcome to Adventure!! Would you like instructions? -> ##Just straight quit. - -Please stick to 1- and 2-word commands. - > n You are standing at the end of a road before a small brick building. -- 2.31.1