1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

Refactor: Replace usages of FixedArray with Vector.

This commit is contained in:
asynts 2020-09-07 11:53:54 +02:00 committed by Andreas Kling
parent 9c83d6ff46
commit ec1080b18a
9 changed files with 27 additions and 23 deletions

View file

@ -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;
}