mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 15:25:58 +01:00
fix segfault in selection. (thx Martti Kühne)
This commit is contained in:
parent
ab9c9a4e3a
commit
13a8eeb810
1 changed files with 1 additions and 1 deletions
2
st.c
2
st.c
|
@ -547,7 +547,7 @@ selrequest(XEvent *e) {
|
||||||
XA_ATOM, 32, PropModeReplace,
|
XA_ATOM, 32, PropModeReplace,
|
||||||
(unsigned char *) &string, 1);
|
(unsigned char *) &string, 1);
|
||||||
xev.property = xsre->property;
|
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,
|
XChangeProperty(xsre->display, xsre->requestor, xsre->property,
|
||||||
xsre->target, 8, PropModeReplace,
|
xsre->target, 8, PropModeReplace,
|
||||||
(unsigned char *) sel.clip, strlen(sel.clip));
|
(unsigned char *) sel.clip, strlen(sel.clip));
|
||||||
|
|
Loading…
Reference in a new issue