From: Karl Heuer Date: Mon, 17 Jul 1995 22:21:21 +0000 (+0000) Subject: (keyboard_bit_set): Fix one-off in loop end. X-Git-Tag: emacs-19.34~3318 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee8e09af76dbcb18f33248d0d08b9321b900dd99;p=emacs.git (keyboard_bit_set): Fix one-off in loop end. --- 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;