1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:48:14 +00:00

Kernel: Use Userspace<T> for the execve syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 12:11:13 -07:00 committed by Andreas Kling
parent 025a2a3c5b
commit 0f42463eab
5 changed files with 8 additions and 8 deletions

View file

@ -957,7 +957,7 @@ int Emulator::virt$execve(FlatPtr params_addr)
auto copy_string_list = [this](auto& output_vector, auto& string_list) {
for (size_t i = 0; i < string_list.length; ++i) {
Syscall::StringArgument string;
mmu().copy_from_vm(&string, (FlatPtr)&string_list.strings[i], sizeof(string));
mmu().copy_from_vm(&string, (FlatPtr)&string_list.strings.ptr()[i], sizeof(string));
output_vector.append(String::copy(mmu().copy_buffer_from_vm((FlatPtr)string.characters, string.length)));
}
};