From 2e28873f23d2cf073fdddfecdc278b0f44b2789b Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sun, 20 May 2012 20:20:39 +0200 Subject: Corrected some bugs in readline && multitasking improvement. --- src/kernel/ui/vt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/ui') 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; } -- cgit v1.2.3