pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab9c9a4
)
fix segfault in selection. (thx Martti Kühne)
author
Aurélien Aptel
<aurelien.aptel@gmail.com>
Tue, 10 Jan 2012 21:21:03 +0000
(22:21 +0100)
committer
Aurélien Aptel
<aurelien.aptel@gmail.com>
Tue, 10 Jan 2012 21:21:03 +0000
(22:21 +0100)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
e193443
..
c3d0888
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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));