sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 050704ab23b698b00ee2ded8dbd4df9afceb8844
parent f4356135a1bd17f46eabc893415bfb1fd03fcd7f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue, 30 Aug 2016 20:02:27 -0400

Merge pull request #874 from yohanesu75/ipc-client-fix

Fix to make ipc client code FreeBSD compatible.
Diffstat:
Mcommon/ipc-client.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/ipc-client.c b/common/ipc-client.c @@ -34,7 +34,7 @@ int ipc_open_socket(const char *socket_path) { addr.sun_family = AF_UNIX; strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path)); addr.sun_path[sizeof(addr.sun_path) - 1] = 0; - int l = sizeof(addr.sun_family) + strlen(addr.sun_path); + int l = sizeof(struct sockaddr_un); if (connect(socketfd, (struct sockaddr *)&addr, l) == -1) { sway_abort("Unable to connect to %s", socket_path); }