mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Kernel: Zero-length dbgputstr() should just return 0
This commit is contained in:
@@ -2831,6 +2831,8 @@ int Process::sys$dbgputch(u8 ch)
|
||||
|
||||
int Process::sys$dbgputstr(const u8* characters, int length)
|
||||
{
|
||||
if (!length)
|
||||
return 0;
|
||||
if (!validate_read(characters, length))
|
||||
return -EFAULT;
|
||||
for (int i = 0; i < length; ++i)
|
||||
|
||||
Reference in New Issue
Block a user