Fix URI list length

Apparently you're _not_ supposed to count the trailing lien feed. This
would cause REAPER to freeze.
This commit is contained in:
Robbert van der Helm
2021-07-11 16:27:58 +02:00
parent 8e29b5edf3
commit a12215de3c
+1 -2
View File
@@ -624,8 +624,7 @@ void WineXdndProxy::handle_convert_selection(
const xcb_selection_request_event_t& event) {
xcb_change_property(x11_connection.get(), XCB_PROP_MODE_REPLACE,
event.requestor, event.property, event.target, 8,
// +1 to account for the trailing null byte
dragged_files_uri_list.size() + 1,
dragged_files_uri_list.size(),
dragged_files_uri_list.c_str());
xcb_flush(x11_connection.get());