From ee8e09af76dbcb18f33248d0d08b9321b900dd99 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 17 Jul 1995 22:21:21 +0000 Subject: [PATCH] (keyboard_bit_set): Fix one-off in loop end. --- src/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index 02f8cc29bac..ca8cc24231d 100644 --- a/src/process.c +++ b/src/process.c @@ -3549,7 +3549,7 @@ keyboard_bit_set (mask) { int fd; - for (fd = 0; fd < max_keyboard_desc; fd++) + for (fd = 0; fd <= max_keyboard_desc; fd++) if (FD_ISSET (fd, mask) && FD_ISSET (fd, &input_wait_mask) && !FD_ISSET (fd, &non_keyboard_wait_mask)) return 1; -- 2.39.2