From e2a33629447afdc96d9884f479f2edf276c6479f Mon Sep 17 00:00:00 2001 From: dkf Date: Sat, 18 Jul 2009 19:32:20 +0000 Subject: Fix the transfer of large binary data. I hate INCR selections transfers... --- ChangeLog | 6 ++++++ unix/tkUnixSelect.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d9de4ac..b3236b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-07-18 Donal K. Fellows + + * unix/tkUnixSelect.c (SelCvtFromX32, SelCvtFromX8): Make the + incremental transfer of binary selections work get deserialized + correctly. Thanks to Emiliano Gavilan for detecting. + 2009-07-15 Donal K. Fellows * unix/tkUnixSelect.c (TkSelEventProc, SelRcvIncrProc, SelCvtFromX8): diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c index 1de8bdc..fda261c 100644 --- a/unix/tkUnixSelect.c +++ b/unix/tkUnixSelect.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixSelect.c,v 1.21.4.1 2009/07/15 21:08:43 dkf Exp $ + * RCS: @(#) $Id: tkUnixSelect.c,v 1.21.4.2 2009/07/18 19:32:20 dkf Exp $ */ #include "tkInt.h" @@ -1504,6 +1504,7 @@ SelCvtFromX32( Tcl_DStringAppendElement(dsPtr, buf); } } + Tcl_DStringAppend(dsPtr, " ", 1); } static void @@ -1528,6 +1529,7 @@ SelCvtFromX8( sprintf(buf, "0x%x", (unsigned char) *propPtr); Tcl_DStringAppendElement(dsPtr, buf); } + Tcl_DStringAppend(dsPtr, " ", 1); } /* -- cgit v0.12