fix segfault in selection. (thx Martti Kühne)

master
Aurélien Aptel 13 years ago
parent ab9c9a4e3a
commit 13a8eeb810

@ -547,7 +547,7 @@ selrequest(XEvent *e) {
XA_ATOM, 32, PropModeReplace,
(unsigned char *) &string, 1);
xev.property = xsre->property;
} else if(xsre->target == sel.xtarget) {
} else if(xsre->target == sel.xtarget && sel.clip != NULL) {
XChangeProperty(xsre->display, xsre->requestor, xsre->property,
xsre->target, 8, PropModeReplace,
(unsigned char *) sel.clip, strlen(sel.clip));

Loading…
Cancel
Save