/[rdesktop]/sourceforge.net/trunk/rdesktop/rdp.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/rdp.c

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

revision 858 by stargo, Sun Mar 13 13:58:23 2005 UTC revision 860 by stargo, Sun Mar 13 17:36:15 2005 UTC
# Line 184  rdp_out_unistr(STREAM s, char *string, i Line 184  rdp_out_unistr(STREAM s, char *string, i
184                          printf("rdp_out_unistr: iconv(1) fail, errno %d\n", errno);                          printf("rdp_out_unistr: iconv(1) fail, errno %d\n", errno);
185                          return;                          return;
186                  }                  }
187                  pin = string; pout = s->p;                  pin = string;
188                    pout = (char*)s->p;
189          }          }
190    
191          if (iconv(iconv_h, (ICONV_CONST char**)&pin, &ibl, &pout, &obl) == (size_t)-1)          if (iconv(iconv_h, (ICONV_CONST char**)&pin, &ibl, &pout, &obl) == (size_t)-1)
# Line 196  rdp_out_unistr(STREAM s, char *string, i Line 197  rdp_out_unistr(STREAM s, char *string, i
197          }          }
198    
199  #ifdef B_ENDIAN  #ifdef B_ENDIAN
200          swab(ss, s->p, len + 4);          swab(ss, (char*)s->p, len + 4);
201  #endif  #endif
202    
203          s->p += len + 2;          s->p += len + 2;
# Line 230  rdp_in_unistr(STREAM s, char *string, in Line 231  rdp_in_unistr(STREAM s, char *string, in
231  #ifdef B_ENDIAN  #ifdef B_ENDIAN
232          char ss[4096];  // FIXME: global MAX_BUF_SIZE macro need          char ss[4096];  // FIXME: global MAX_BUF_SIZE macro need
233    
234          swab(s->p, ss, uni_len);          swab((char*)s->p, ss, uni_len);
235          pin = ss;          pin = ss;
236  #else  #else
237          pin = s->p;          pin = s->p;

Legend:
Removed from v.858  
changed lines
  Added in v.860

  ViewVC Help
Powered by ViewVC 1.1.26