--- sourceforge.net/trunk/rdesktop/channels.c 2003/09/27 12:14:25 473 +++ sourceforge.net/trunk/rdesktop/channels.c 2004/06/17 09:42:58 717 @@ -81,7 +81,7 @@ { uint32 length, flags; uint32 thislength, remaining; - char *data; + uint8 *data; /* first fragment sent in-place */ s_pop_layer(s, channel_hdr); @@ -89,7 +89,7 @@ DEBUG_CLIPBOARD(("channel_send, length = %d\n", length)); - thislength = MIN(length, CHANNEL_CHUNK_LENGTH); + thislength = MIN(length, CHANNEL_CHUNK_LENGTH); /* Note: In the original clipboard implementation, this number was 1592, not 1600. However, I don't remember the reason and 1600 seems to work so.. This applies only to *this* length, not the length of @@ -132,7 +132,7 @@ { uint32 length, flags; uint32 thislength; - VCHANNEL *channel; + VCHANNEL *channel = NULL; unsigned int i; STREAM in; @@ -161,7 +161,7 @@ { if (length > in->size) { - in->data = xrealloc(in->data, length); + in->data = (uint8 *) xrealloc(in->data, length); in->size = length; } in->p = in->data;