Fix incorrect format specifiers

This commit is contained in:
Antonin Décimo 2020-06-04 15:43:42 +02:00 committed by Tudor Brindus
parent a1c6052383
commit bbf7b92fe4
7 changed files with 10 additions and 10 deletions

View file

@ -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");
}