diff --git a/src/add-ons/kernel/drivers/tty/line_buffer.cpp b/src/add-ons/kernel/drivers/tty/line_buffer.cpp index cd8776dbce..ddead899a9 100644 --- a/src/add-ons/kernel/drivers/tty/line_buffer.cpp +++ b/src/add-ons/kernel/drivers/tty/line_buffer.cpp @@ -82,8 +82,10 @@ line_buffer_user_read(struct line_buffer &buffer, char *data, size_t length) bytesRead = B_BAD_ADDRESS; } - if (bytesRead > 0) + if (bytesRead > 0) { buffer.first = (buffer.first + bytesRead) % buffer.size; + buffer.in -= bytesRead; + } return bytesRead; }