mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 10:02:57 +03:00
Format session socket name in place into the sockaddr_un
This commit is contained in:
parent
564ab7d942
commit
47ab4038ec
@ -432,8 +432,7 @@ static sockaddr_un session_addr(StringView session)
|
||||
{
|
||||
sockaddr_un addr;
|
||||
addr.sun_family = AF_UNIX;
|
||||
strncpy(addr.sun_path, format("/tmp/kak-{}", session).c_str(),
|
||||
sizeof(addr.sun_path) - 1);
|
||||
format_to(addr.sun_path, "/tmp/kak-{}", session);
|
||||
return addr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user