kernel: Make /dev/console actually respect the length parameter instead of trusting userspace's null terminators

This commit is contained in:
apio 2023-03-18 20:10:00 +01:00
parent d01ba20749
commit 6a6a56a8b4
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -14,6 +14,6 @@ Result<usize> ConsoleDevice::read(u8*, usize, usize) const
Result<usize> ConsoleDevice::write(const u8* buf, usize, usize length)
{
TextConsole::print((const char*)buf);
TextConsole::write((const char*)buf, length);
return length;
}