Fix bug that led to comments not being ignored.
[open-adventure.git] / misc.c
diff --git a/misc.c b/misc.c
index b80d9b807e18917593d0727ca7da2fcd3d844428..9e18c7481586960bc3c21f898b96d091a952362e 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -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);