Browse Source

TTY::write() should return the number of bytes written.

Andreas Kling 6 years ago
parent
commit
e7b1101f62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Kernel/TTY.cpp

+ 1 - 1
Kernel/TTY.cpp

@@ -39,7 +39,7 @@ ssize_t TTY::write(const byte* buffer, size_t size)
     dbgprintf("\n");
 #endif
     on_tty_write(buffer, size);
-    return 0;
+    return size;
 }
 
 bool TTY::has_data_available_for_reading() const