mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-07-10 11:03:46 -04:00
xwayland:use size of the pointed type instead of pointer
fixes a typo inc91543352a(cherry picked from commitc3f7587068)
This commit is contained in:
parent
06e2d21f70
commit
08921ddf4e
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