diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-20 20:20:39 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-20 20:20:39 +0200 |
commit | 2e28873f23d2cf073fdddfecdc278b0f44b2789b (patch) | |
tree | 58e5ac230bdbe82def76751f4e7a2bb34ce01475 /src/kernel/ui/vt.cpp | |
parent | 7fde5e61bc7047433bfc1f47229b72d0ccd302e7 (diff) | |
download | TCE-2e28873f23d2cf073fdddfecdc278b0f44b2789b.tar.gz TCE-2e28873f23d2cf073fdddfecdc278b0f44b2789b.zip |
Corrected some bugs in readline && multitasking improvement.
Diffstat (limited to 'src/kernel/ui/vt.cpp')
-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; } |