aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lib.c')
-rw-r--r--lib/lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 1defe1e4..955f2426 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -975,6 +975,7 @@ int yesno(char *prompt, int def)
while (fread(&buf, 1, 1, stdin)) {
int new;
+ // The letter changes the value, the newline (or space) returns it.
if (isspace(buf)) break;
if (-1 != (new = stridx("ny", tolower(buf)))) def = new;
}