X11: Fix reading list of available mime types

This commit is contained in:
Kovid Goyal 2022-12-03 08:16:59 +05:30
parent 26e8a5186a
commit 0b293428c4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/x11_window.c vendored
View File

@ -1033,7 +1033,7 @@ getSelectionString(Atom selection, Atom *targets, size_t num_targets, GLFWclipbo
}
else if (actualType == XA_ATOM && targets[i] == _glfw.x11.TARGETS) {
found = true;
write_data(object, data, itemCount);
write_data(object, data, sizeof(Atom) * itemCount);
}
XFREE(data);