From 5e822fe9c265b6c890e2646393a1f057bd083c9f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 21 Oct 2011 10:13:46 +0400 Subject: [PATCH] fixed dfrotz target --- backends/frotz/dfrotz/dumb/dumb_input.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backends/frotz/dfrotz/dumb/dumb_input.c b/backends/frotz/dfrotz/dumb/dumb_input.c index 9fcfb78c..80918e06 100644 --- a/backends/frotz/dfrotz/dumb/dumb_input.c +++ b/backends/frotz/dfrotz/dumb/dumb_input.c @@ -81,9 +81,12 @@ 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';