Commit ee8e09af authored by Karl Heuer's avatar Karl Heuer
Browse files

(keyboard_bit_set): Fix one-off in loop end.

parent cb33c142
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment