Re: [Spice-devel] [spice-gtk 2/2] Recheck clipboard size after modifying its data

2014-11-17 Thread Christophe Fergeau
On Mon, Nov 17, 2014 at 03:54:18PM +0100, Marc-André Lureau wrote: > looks good, ack > > On Mon, Nov 17, 2014 at 3:17 PM, Christophe Fergeau > wrote: > > SpiceGtkSession::clipboard_received_cb() starts by checking if the > > clipboard is empty, or if the length of its data exceeds > > 'max-clipb

Re: [Spice-devel] [spice-gtk 2/2] Recheck clipboard size after modifying its data

2014-11-17 Thread Marc-André Lureau
looks good, ack On Mon, Nov 17, 2014 at 3:17 PM, Christophe Fergeau wrote: > SpiceGtkSession::clipboard_received_cb() starts by checking if the > clipboard is empty, or if the length of its data exceeds > 'max-clipboard-size'. > > Later in that function, the data is modified, and can be shortened

[Spice-devel] [spice-gtk 2/2] Recheck clipboard size after modifying its data

2014-11-17 Thread Christophe Fergeau
SpiceGtkSession::clipboard_received_cb() starts by checking if the clipboard is empty, or if the length of its data exceeds 'max-clipboard-size'. Later in that function, the data is modified, and can be shortened (removal of trailing '\0' or of '\r' for Windows -> linux copy and paste), or enlarge