summaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
authorAntonin Décimo <[email protected]>2020-06-04 15:43:42 +0200
committerTudor Brindus <[email protected]>2020-07-30 22:02:42 -0400
commitbbf7b92fe4b34288dbe7c58827a1f69428ffb263 (patch)
tree2837fac64c52cb5f51cc49367a40099068374de1 /sway/ipc-server.c
parenta1c6052383d382d978ca597dc5fb280c0343db60 (diff)
Fix incorrect format specifiers
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 8ba8b9ba..aad9a7b5 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -140,7 +140,7 @@ struct sockaddr_un *ipc_user_sockaddr(void) {
dir = "/tmp";
}
if (path_size <= snprintf(ipc_sockaddr->sun_path, path_size,
- "%s/sway-ipc.%i.%i.sock", dir, getuid(), getpid())) {
+ "%s/sway-ipc.%u.%i.sock", dir, getuid(), getpid())) {
sway_abort("Socket path won't fit into ipc_sockaddr->sun_path");
}