commit 3254b787c5ea505585f182c32b7aeaf70767309f
parent 10ec2eef66c0a37d629ca8ad738311063f73ae10
Author: Conrad Parker <conrad@metadecks.org>
Date: Thu, 24 Aug 2017 11:20:32 +0800
Use "long" for "32"-bit properties
Patch from OpenBSD Revision 1.1
http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/x11/xsel/patches/patch-xsel_c
Fix xsel to use "long" for "32"-bit properties, per Xlib's crazy API.
Pointed out by patrick keshishian on misc
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xsel.c b/xsel.c
@@ -725,7 +725,7 @@ wait_selection (Atom selection, Atom request_target)
} else if (target == incr_atom) {
/* Handle INCR transfers */
retval = wait_incr_selection (selection, &event.xselection,
- *(int *)value);
+ *(long *)value);
keep_waiting = False;
} else if (target != utf8_atom && target != XA_STRING &&
target != compound_text_atom &&
@@ -1271,7 +1271,7 @@ change_property (Display * display, Window requestor, Atom property,
Atom selection, Time time, MultTrack * mparent)
{
XSelectionEvent ev;
- int nr_bytes;
+ long nr_bytes;
IncrTrack * it;
print_debug (D_TRACE, "change_property ()");