81 |
{ |
{ |
82 |
uint32 length, flags; |
uint32 length, flags; |
83 |
uint32 thislength, remaining; |
uint32 thislength, remaining; |
84 |
char *data; |
uint8 *data; |
85 |
|
|
86 |
/* first fragment sent in-place */ |
/* first fragment sent in-place */ |
87 |
s_pop_layer(s, channel_hdr); |
s_pop_layer(s, channel_hdr); |
89 |
|
|
90 |
DEBUG_CLIPBOARD(("channel_send, length = %d\n", length)); |
DEBUG_CLIPBOARD(("channel_send, length = %d\n", length)); |
91 |
|
|
92 |
thislength = MIN(length, CHANNEL_CHUNK_LENGTH); |
thislength = MIN(length, CHANNEL_CHUNK_LENGTH); |
93 |
/* Note: In the original clipboard implementation, this number was |
/* Note: In the original clipboard implementation, this number was |
94 |
1592, not 1600. However, I don't remember the reason and 1600 seems |
1592, not 1600. However, I don't remember the reason and 1600 seems |
95 |
to work so.. This applies only to *this* length, not the length of |
to work so.. This applies only to *this* length, not the length of |
132 |
{ |
{ |
133 |
uint32 length, flags; |
uint32 length, flags; |
134 |
uint32 thislength; |
uint32 thislength; |
135 |
VCHANNEL *channel; |
VCHANNEL *channel = NULL; |
136 |
unsigned int i; |
unsigned int i; |
137 |
STREAM in; |
STREAM in; |
138 |
|
|
161 |
{ |
{ |
162 |
if (length > in->size) |
if (length > in->size) |
163 |
{ |
{ |
164 |
in->data = xrealloc(in->data, length); |
in->data = (uint8 *) xrealloc(in->data, length); |
165 |
in->size = length; |
in->size = length; |
166 |
} |
} |
167 |
in->p = in->data; |
in->p = in->data; |