Browse Source

ccanlint: don't skip every second question

We only grabbed one character at a time from stdin, so "y<return>" answered
the next question as well.
Rusty Russell 15 years ago
parent
commit
83cfe17fd8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/ccanlint/ccanlint.c

+ 1 - 1
tools/ccanlint/ccanlint.c

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