From: Rusty Russell Date: Mon, 15 Nov 2010 02:48:57 +0000 (+1030) Subject: ccanlint: don't skip every second question X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=83cfe17fd85efb7f5d8e8b1edb1f3c28b180a2ce 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. --- 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);