read_line: skip characters > 255

This commit is contained in:
Piotr Durlej 2020-01-11 08:14:46 +00:00 committed by Kenneth J Davis
parent e0818e305b
commit 5ec1e993b4

View File

@ -497,6 +497,8 @@ void read_line(int sft_in, int sft_out, keyboard FAR * kp)
/* fall through */
default:
if (c >= 256)
break;
if (count < size - 1 || c == CR)
local_buffer[count++] = echo_char(c, sft_out);
else