diff options
Diffstat (limited to 'src/kernel/ui')
-rw-r--r-- | src/kernel/ui/vt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/ui/vt.cpp b/src/kernel/ui/vt.cpp index 9b0bdf0..3bed897 100644 --- a/src/kernel/ui/vt.cpp +++ b/src/kernel/ui/vt.cpp @@ -384,8 +384,8 @@ int vt::read(size_t offset, size_t len, char* buffer) { if (c == len) break; } } else { - for (; r < kbd_buffer_filled && c < len; r++) { - buffer[c++] = kbd_buffer[r]; + while (r < kbd_buffer_filled && c < len) { + buffer[c++] = kbd_buffer[r++]; } end = true; } |