(wrong string) ühne) || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Tue, 10 Jan 2012 22:21:24 +0100 (CET)

changeset: 220:744a4ae24e8e
tag: tip
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Tue Jan 10 22:21:03 2012 +0100
files: st.c
description:
fix segfault in selection. (thx Martti Kühne)


diff -r b84a9a28f6fa -r 744a4ae24e8e st.c
--- a/st.c Tue Nov 01 16:37:16 2011 +0100
+++ b/st.c Tue Jan 10 22:21:03 2012 +0100
_AT_@ -547,7 +547,7 @@
                                 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));
Received on Tue Jan 10 2012 - 22:21:24 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 10 2012 - 22:24:12 CET