mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Refactor: Replace usages of FixedArray with Vector.
This commit is contained in:
parent
9c83d6ff46
commit
ec1080b18a
9 changed files with 27 additions and 23 deletions
|
@ -86,11 +86,7 @@ int Process::sys$getgroups(ssize_t count, Userspace<gid_t*> user_gids)
|
|||
if (!validate_write_typed(user_gids, m_extra_gids.size()))
|
||||
return -EFAULT;
|
||||
|
||||
Vector<gid_t> gids;
|
||||
for (auto gid : m_extra_gids)
|
||||
gids.append(gid);
|
||||
|
||||
copy_to_user(user_gids, gids.data(), sizeof(gid_t) * count);
|
||||
copy_to_user(user_gids, m_extra_gids.data(), sizeof(gid_t) * count);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue