diff options
author | Szabolcs Seláf <selu@selu.org> | 2017-01-17 15:18:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 15:18:23 +0100 |
commit | bf4c32c862cb72a6cbfa587357b1db806c4e4cc8 (patch) | |
tree | 53f0df5edf6b81c98da7ca50be05f986da2b149f /sesman/chansrv/clipboard.c | |
parent | 19375dda7a12e955f053f32ea6a1d206a773010d (diff) | |
download | xrdp-proprietary-bf4c32c862cb72a6cbfa587357b1db806c4e4cc8.tar.gz xrdp-proprietary-bf4c32c862cb72a6cbfa587357b1db806c4e4cc8.zip |
Fix calling XChangeProperty in clipboard provide
XChangeProperty's last parameter is number of elements, not number of bytes as it's in https://tronche.com/gui/x/xlib/window-information/XChangeProperty.html
Because of this bug Paste did not work in any java applications.
Diffstat (limited to 'sesman/chansrv/clipboard.c')
-rw-r--r-- | sesman/chansrv/clipboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sesman/chansrv/clipboard.c b/sesman/chansrv/clipboard.c index 7a9795d6..499dcc03 100644 --- a/sesman/chansrv/clipboard.c +++ b/sesman/chansrv/clipboard.c @@ -966,7 +966,7 @@ clipboard_provide_selection(XSelectionRequestEvent *req, Atom type, int format, if (bytes < g_incr_max_req_size) { XChangeProperty(g_display, req->requestor, req->property, - type, format, PropModeReplace, (tui8 *)data, bytes); + type, format, PropModeReplace, (tui8 *)data, length); g_memset(&xev, 0, sizeof(xev)); xev.xselection.type = SelectionNotify; xev.xselection.send_event = True; |