kernel/exec: Rename item to string_addr
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-03-18 21:56:34 +01:00
parent 7f50893786
commit 0b00dc3fe4
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -16,13 +16,13 @@ static Result<Vector<OwnedStringView>> copy_string_vector_from_userspace(u64 add
const u64* user_vector = (const u64*)address; const u64* user_vector = (const u64*)address;
u64 item; u64 string_addr;
while (true) while (true)
{ {
if (!MemoryManager::copy_from_user_typed(user_vector, &item)) return err(EFAULT); if (!MemoryManager::copy_from_user_typed(user_vector, &string_addr)) return err(EFAULT);
if (!item) break; if (!string_addr) break;
auto string = TRY(MemoryManager::strdup_from_user(item)); auto string = TRY(MemoryManager::strdup_from_user(string_addr));
TRY(result.try_append(move(string))); TRY(result.try_append(move(string)));
user_vector++; user_vector++;
} }