From c3f75870689ce577f5bf405f9c372eca448b5c36 Mon Sep 17 00:00:00 2001 From: Steve Williams Date: Sat, 20 Jun 2026 22:05:32 +0400 Subject: [PATCH] xwayland:use size of the pointed type instead of pointer fixes a typo in https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/c91543352aff18052946e6ac3703a152f66307d7 --- xwayland/selection/incoming.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwayland/selection/incoming.c b/xwayland/selection/incoming.c index 2e512e7db..fbf3d2937 100644 --- a/xwayland/selection/incoming.c +++ b/xwayland/selection/incoming.c @@ -344,7 +344,7 @@ static bool source_get_targets(struct wlr_xwm_selection *selection, } const xcb_atom_t *value = xcb_get_property_value(reply); - uint32_t value_len = xcb_get_property_value_length(reply) / sizeof(value); + uint32_t value_len = xcb_get_property_value_length(reply) / sizeof(value[0]); for (uint32_t i = 0; i < value_len; i++) { char *mime_type = NULL;