Pārlūkot izejas kodu

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

Andreas Kling 6 gadi atpakaļ
vecāks
revīzija
e7b1101f62
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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