diff options
Diffstat (limited to 'src/dev/terminal.cc')
-rw-r--r-- | src/dev/terminal.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dev/terminal.cc b/src/dev/terminal.cc index 53e593f85..9f0ea5ea3 100644 --- a/src/dev/terminal.cc +++ b/src/dev/terminal.cc @@ -204,7 +204,7 @@ Terminal::accept() char buf[1024]; for (size_t i = 0; i < txbuf.size(); i += sizeof(buf)) { const size_t chunk_len(std::min(txbuf.size() - i, sizeof(buf))); - txbuf.peek(buf, chunk_len); + txbuf.peek(buf, i, chunk_len); write((const uint8_t *)buf, chunk_len); } } |