mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +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:
parent
cae20d2aa9
commit
226383f45b
3 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue