Explorar o código

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

Andreas Kling %!s(int64=6) %!d(string=hai) anos
pai
achega
e7b1101f62
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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