kernel: Make /dev/console actually respect the length parameter instead of trusting userspace's null terminators
This commit is contained in:
parent
d01ba20749
commit
6a6a56a8b4
@ -14,6 +14,6 @@ Result<usize> ConsoleDevice::read(u8*, usize, usize) const
|
|||||||
|
|
||||||
Result<usize> ConsoleDevice::write(const u8* buf, usize, usize length)
|
Result<usize> ConsoleDevice::write(const u8* buf, usize, usize length)
|
||||||
{
|
{
|
||||||
TextConsole::print((const char*)buf);
|
TextConsole::write((const char*)buf, length);
|
||||||
return length;
|
return length;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user