LibCore: Remove strtol call from parse_sockets_from_system_server

This commit is contained in:
Dan Klishch 2023-10-30 16:08:01 -04:00 committed by Daniel Bertalan
parent 568e5d5631
commit e169d99bec
Notes: sideshowbarker 2024-07-17 05:03:11 +09:00

View file

@ -26,7 +26,8 @@ static void parse_sockets_from_system_server()
for (auto const socket : StringView { sockets, strlen(sockets) }.split_view(';')) {
auto params = socket.split_view(':');
s_overtaken_sockets.set(params[0].to_deprecated_string(), strtol(params[1].to_deprecated_string().characters(), nullptr, 10));
VERIFY(params.size() == 2);
s_overtaken_sockets.set(params[0].to_deprecated_string(), params[1].to_int().value());
}
s_overtaken_sockets_parsed = true;