Fix bug that led to comments bnot being ignored.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 26 May 2017 09:14:18 +0000 (05:14 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 26 May 2017 09:14:18 +0000 (05:14 -0400)
misc.c
tests/death-jump.chk
tests/dwarf.chk
tests/quit.chk

diff --git a/misc.c b/misc.c
index 8ea3db40c6cde454344abef1f86fa9b338f1530c..a656cbc24e22823699ec9c2a132942f9a0a03626 100644 (file)
--- 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);
index 6bc9e7219899f37754c90d876d8ae44f8981459a..55e648c51e93647e7e0be5c05e395182a8f52d39 100644 (file)
@@ -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.  
index d2c9d79c09a72013469e777d56b415c0b1151a02..fcf3a1e5c09f7e749b20b807ac304874e0293fc2 100644 (file)
@@ -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.  
index 183d633c21831237251d15584d9a33cc5d19f1ad..87a8d9865376dc051bc69299f8257ec5e395278e 100644 (file)
@@ -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.