mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-24 13:35:58 -04:00
xwayland:use size of the pointed type instead of pointer
fixes a typo in c91543352a
This commit is contained in:
parent
f141edcd02
commit
c3f7587068
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue