From 83cfe17fd85efb7f5d8e8b1edb1f3c28b180a2ce Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 15 Nov 2010 13:18:57 +1030 Subject: [PATCH] ccanlint: don't skip every second question We only grabbed one character at a time from stdin, so "y" answered the next question as well. --- tools/ccanlint/ccanlint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index fb3e4d14..44d828bb 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -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); -- 2.39.2