diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:19:40 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:53:14 +0200 |
commit | 226383f45b2f2e6939f9f71efdf55615de9de624 (patch) | |
tree | 56d206318777ed89d5651189fc95c7d2096e4e1e /Userland/DevTools/UserspaceEmulator/Emulator.cpp | |
parent | cae20d2aa9a440e250b6928de3339ea4ee3c67b6 (diff) | |
download | serenity-226383f45b2f2e6939f9f71efdf55615de9de624.zip |
LibELF: Use StringView to carry temporary strings in auxiliary vector
Let's not force clients to provide a String.
Diffstat (limited to 'Userland/DevTools/UserspaceEmulator/Emulator.cpp')
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/Emulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator.cpp b/Userland/DevTools/UserspaceEmulator/Emulator.cpp index 65e50e8908..3f751f6927 100644 --- a/Userland/DevTools/UserspaceEmulator/Emulator.cpp +++ b/Userland/DevTools/UserspaceEmulator/Emulator.cpp @@ -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(); } } |