diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index e55d1e06650..ad5c2492ccb 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -4787,8 +4787,7 @@ read_avail_input (expected) | |||
| 4787 | 4787 | ||
| 4788 | if (read_socket_hook) | 4788 | if (read_socket_hook) |
| 4789 | /* No need for FIONREAD or fcntl; just say don't wait. */ | 4789 | /* No need for FIONREAD or fcntl; just say don't wait. */ |
| 4790 | nread = (*read_socket_hook) (input_fd, buf, KBD_BUFFER_SIZE, | 4790 | nread = (*read_socket_hook) (input_fd, buf, KBD_BUFFER_SIZE, expected); |
| 4791 | expected, expected); | ||
| 4792 | else | 4791 | else |
| 4793 | { | 4792 | { |
| 4794 | /* Using KBD_BUFFER_SIZE - 1 here avoids reading more than | 4793 | /* Using KBD_BUFFER_SIZE - 1 here avoids reading more than |