projects
/
gnushogi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Regularly check for user input when searching, to have a chance to catch EOF from...
[gnushogi.git]
/
gnushogi
/
commondsp.c
diff --git
a/gnushogi/commondsp.c
b/gnushogi/commondsp.c
index
31dc80e
..
1f39b78
100644
(file)
--- a/
gnushogi/commondsp.c
+++ b/
gnushogi/commondsp.c
@@
-1745,8
+1745,8
@@
InputCommand(char *command)
{
s[0] = sx[0] = '\0';
- while(!sx[0])
- (void)fgets(sx, 80, stdin);
+ while(!eof && !sx[0])
+ eof = (fgets(sx, 80, stdin) == NULL);
}
else
{