summaryrefslogtreecommitdiff
path: root/src/kernel/ui/vt.cpp
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-20 20:20:39 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-20 20:20:39 +0200
commit2e28873f23d2cf073fdddfecdc278b0f44b2789b (patch)
tree58e5ac230bdbe82def76751f4e7a2bb34ce01475 /src/kernel/ui/vt.cpp
parent7fde5e61bc7047433bfc1f47229b72d0ccd302e7 (diff)
downloadTCE-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.cpp4
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;
}