Skip to content

Commit

Permalink
x11: Fix bug getting list of TARGETS from selection owner
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Jul 16, 2018
1 parent ccc6f36 commit d331309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clip_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ class Manager {
// buffer.
void copy_reply_data(xcb_get_property_reply_t* reply) {
const uint8_t* src = (const uint8_t*)xcb_get_property_value(reply);
// n = length of "src" in bytes
size_t n = xcb_get_property_value_length(reply);
n = n / (reply->format/8);

size_t req = m_reply_offset+n;
if (!m_reply_data) {
Expand Down

0 comments on commit d331309

Please sign in to comment.