mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibELF: Convert String::format() to String::formatted()
This commit is contained in:
parent
eb354b7ce8
commit
a5de46684b
3 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ static void map_library(const String& name, int fd)
|
|||
static void map_library(const String& name)
|
||||
{
|
||||
// TODO: Do we want to also look for libs in other paths too?
|
||||
String path = String::format("/usr/lib/%s", name.characters());
|
||||
String path = String::formatted("/usr/lib/{}", name);
|
||||
int fd = open(path.characters(), O_RDONLY);
|
||||
ASSERT(fd >= 0);
|
||||
map_library(name, fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue