read_line: skip characters > 255
This commit is contained in:
parent
e0818e305b
commit
5ec1e993b4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user