xwayland:use size of the pointed type instead of pointer

fixes a typo in c91543352a

(cherry picked from commit c3f7587068)
This commit is contained in:
Steve Williams 2026-06-20 22:05:32 +04:00 committed by Simon Zeni
parent 06e2d21f70
commit 08921ddf4e

View file

@ -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;