/[rdesktop]/sourceforge.net/trunk/rdesktop/channels.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/channels.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 445 by jsorg71, Fri Aug 1 17:01:58 2003 UTC revision 446 by matthewc, Mon Aug 18 04:52:51 2003 UTC
# Line 156  channel_process(STREAM s, uint16 mcs_cha Line 156  channel_process(STREAM s, uint16 mcs_cha
156                          in->p = in->data;                          in->p = in->data;
157                  }                  }
158    
159                  thislength = s->end - s->p;                  thislength = MIN(s->end - s->p, in->data + in->size - in->p);
160                  memcpy(in->p, s->p, thislength);                  memcpy(in->p, s->p, thislength);
161                  s->p += thislength;                  in->p += thislength;
                 s->end += thislength;  
162    
163                  if (flags & CHANNEL_FLAG_LAST)                  if (flags & CHANNEL_FLAG_LAST)
164                  {                  {
165                            in->end = in->p;
166                          in->p = in->data;                          in->p = in->data;
167                          channel->process(in);                          channel->process(in);
168                  }                  }

Legend:
Removed from v.445  
changed lines
  Added in v.446

  ViewVC Help
Powered by ViewVC 1.1.26