diff --git a/backends/frotz/dfrotz/dumb/dumb_input.c b/backends/frotz/dfrotz/dumb/dumb_input.c index 9fcfb78c3637c387777d2c8438153173c4724581..55d464d7ec16378dbf195262fe108d97952853a9 100644 --- a/backends/frotz/dfrotz/dumb/dumb_input.c +++ b/backends/frotz/dfrotz/dumb/dumb_input.c @@ -81,9 +81,10 @@ static int xgetchar(void) * other places where I'm not so careful). */ static void getline_(char *s) { - fflush(stdout); int c; - char *p = s; + char *p; + fflush(stdout); + p = s; while (p < s + INPUT_BUFFER_SIZE - 1) if ((*p++ = xgetchar()) == '\n') { *p = '\0';