aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDemi Marie Obenour <demi@invisiblethingslab.com>2024-08-05 12:59:21 -0400
committerDemi Marie Obenour <demi@invisiblethingslab.com>2024-11-30 16:02:55 -0500
commit9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d (patch)
tree77742e87acac6ce4787517feb1b634715b07d4c1
parenttests: Avoid calling function with wrong type (diff)
downloadwayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar
wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.gz
wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.bz2
wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.lz
wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.xz
wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.tar.zst
wayland-9cb3d7aa9dc995ffafdbdef7ab86a949d0fb0e7d.zip
connection: Fix wrong format string
Prevents undefined behavior if there is not enough space in the buffer for a queued message. Signed-off-by: Demi Marie Obenour <demi@invisiblethingslab.com>
-rw-r--r--src/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c
index 1177d66..3449521 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -260,7 +260,7 @@ ring_buffer_ensure_space(struct wl_ring_buffer *b, size_t count)
* allowed).
*/
if (net_size > size_pot(size_bits)) {
- wl_log("Data too big for buffer (%d + %zd > %zd).\n",
+ wl_log("Data too big for buffer (%zu + %zu > %zu).\n",
ring_buffer_size(b), count, size_pot(size_bits));
errno = E2BIG;
return -1;