mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-31 01:34:19 +02:00
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 */
|
/* fall through */
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
if (c >= 256)
|
||||||
|
break;
|
||||||
if (count < size - 1 || c == CR)
|
if (count < size - 1 || c == CR)
|
||||||
local_buffer[count++] = echo_char(c, sft_out);
|
local_buffer[count++] = echo_char(c, sft_out);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user