mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
Kernel: Remove various other uses of ssize_t
This commit is contained in:
parent
ca3cae81eb
commit
bc3076f894
33 changed files with 123 additions and 129 deletions
|
@ -45,6 +45,9 @@ KResultOr<int> Process::sys$getcwd(Userspace<char*> buffer, size_t size)
|
|||
{
|
||||
REQUIRE_PROMISE(rpath);
|
||||
|
||||
if (size > NumericLimits<ssize_t>::max())
|
||||
return EINVAL;
|
||||
|
||||
auto path = current_directory().absolute_path();
|
||||
|
||||
size_t ideal_size = path.length() + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue