1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 11:55:08 +00:00

Kernel: Zero-length dbgputstr() should just return 0

This commit is contained in:
Andreas Kling 2019-08-09 19:44:14 +02:00
parent 2c947a2c97
commit a720061423

View file

@ -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)