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

LibELF: Use StringView to carry temporary strings in auxiliary vector

Let's not force clients to provide a String.
This commit is contained in:
Andreas Kling 2021-09-07 13:19:40 +02:00
parent cae20d2aa9
commit 226383f45b
3 changed files with 7 additions and 7 deletions

View file

@ -115,7 +115,7 @@ void Emulator::setup_stack(Vector<ELF::AuxiliaryValue> aux_vector)
for (auto& auxv : aux_vector) {
if (!auxv.optional_string.is_empty()) {
m_cpu.push_string(auxv.optional_string.characters());
m_cpu.push_string(auxv.optional_string);
auxv.auxv.a_un.a_ptr = (void*)m_cpu.esp().value();
}
}