1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibCore: Use ';' to split socket path in SOCKET_TAKEOVER

This allow to use socket path with spaces inside.

Closes #16436.
This commit is contained in:
Federico Guerinoni 2022-12-15 14:16:31 +01:00 committed by Tim Flynn
parent 944e17ce9e
commit 43ff500a80
3 changed files with 4 additions and 4 deletions

View file

@ -23,7 +23,7 @@ static void parse_sockets_from_system_server()
return;
}
for (auto& socket : StringView { sockets, strlen(sockets) }.split_view(' ')) {
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));
}