projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5116109
)
ccanlint: don't skip every second question
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 15 Nov 2010 02:48:57 +0000
(13:18 +1030)
committer
Rusty 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
patch
|
blob
|
history
diff --git
a/tools/ccanlint/ccanlint.c
b/tools/ccanlint/ccanlint.c
index fb3e4d140fe378108f23b4d0042f5ec41a6fd645..44d828bb78cb132ac9a3c5998f1949874dd93d6f 100644
(file)
--- 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);