diff --git a/Userland/Libraries/LibELF/Image.cpp b/Userland/Libraries/LibELF/Image.cpp index ac865222bb..53ea48a304 100644 --- a/Userland/Libraries/LibELF/Image.cpp +++ b/Userland/Libraries/LibELF/Image.cpp @@ -251,7 +251,7 @@ Optional Image::Section::relocations() const builder.append(".rel"sv); builder.append(name()); - auto relocation_section = m_image.lookup_section(builder.to_string()); + auto relocation_section = m_image.lookup_section(builder.string_view()); if (!relocation_section.has_value()) return {};