mirror of
https://github.com/aphrody-labs/cygwin.git
synced 2026-10-13 22:03:45 +00:00
Cygwin: console: Fix argument of process_input_message() in read()
The commitfac73911f5("Cygwin: console: Fix typeahead input for bash") introduced an argument to process_input_message() to restict the maximum length to be processed by this function. However, the commit failed to account for the number of chars already copied into the buffer. This patch corrects the argument to process_input_message() to address this issue. Fixes:fac73911f5("Cygwin: console: Fix typeahead input for bash") Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp> Reviewed-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
This commit is contained in:
1 parent
935d5dae0f
commit
2ac3428a93
1 file changed
+1
-1
@@ -1273,7 +1273,7 @@ wait_retry:
|
||||
|
||||
int ret;
|
||||
acquire_input_mutex (mutex_timeout);
|
||||
ret = process_input_message (buflen);
|
||||
ret = process_input_message (buflen - copied_chars);
|
||||
switch (ret)
|
||||
{
|
||||
case input_error:
|
||||
|
||||
Reference in new issue
Block a user