ccanlint: don't skip every second question
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:48:57 +0000 (13:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:48:57 +0000 (13:18 +1030)
We only grabbed one character at a time from stdin, so "y<return>" answered
the next question as well.

tools/ccanlint/ccanlint.c

index fb3e4d140fe378108f23b4d0042f5ec41a6fd645..44d828bb78cb132ac9a3c5998f1949874dd93d6f 100644 (file)
@@ -59,7 +59,7 @@ static void indent_print(const char *string)
 
 bool ask(const char *question)
 {
-       char reply[2];
+       char reply[80];
 
        printf("%s ", question);
        fflush(stdout);