tfix segfault in selection. (thx Martti Kühne) - st - [fork] customized build of st, the simple terminal
(HTM) git clone git://src.adamsgaard.dk/st
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 13a8eeb810ccfdaefd58c52328dd0ec867e3ae8d
(DIR) parent ab9c9a4e3af246d0b4c6419bffb02a23fd5c1462
(HTM) Author: Aurélien Aptel <aurelien.aptel@gmail.com>
Date: Tue, 10 Jan 2012 22:21:03 +0100
fix segfault in selection. (thx Martti Kühne)
Diffstat:
M st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/st.c b/st.c
t@@ -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));