Skip to content

Commit 5ec1e99

Browse files
Piotr DurlejPerditionC
authored andcommitted
read_line: skip characters > 255
1 parent e0818e3 commit 5ec1e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/chario.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ void read_line(int sft_in, int sft_out, keyboard FAR * kp)
497497
/* fall through */
498498

499499
default:
500+
if (c >= 256)
501+
break;
500502
if (count < size - 1 || c == CR)
501503
local_buffer[count++] = echo_char(c, sft_out);
502504
else

0 commit comments

Comments
 (0)