/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.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/branches/seamlessrdp-branch/rdesktop/rdesktop.c

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

revision 350 by forsberg, Thu Mar 27 13:18:13 2003 UTC revision 365 by matthewc, Wed Apr 16 08:19:15 2003 UTC
# Line 622  save_licence(unsigned char *data, int le Line 622  save_licence(unsigned char *data, int le
622          s_ptr = &s;          s_ptr = &s;
623          s_ptr->p = data;          s_ptr->p = data;
624          /* Skip first two bytes */          /* Skip first two bytes */
625          in_uint16(s_ptr, len);          in_uint16_le(s_ptr, len);
626    
627          /* Skip three strings */          /* Skip three strings */
628          for (i = 0; i < 3; i++)          for (i = 0; i < 3; i++)
629          {          {
630                  in_uint32(s_ptr, len);                  in_uint32_le(s_ptr, len);
631                  s_ptr->p += len;                  s_ptr->p += len;
632                  /* Make sure that we won't be past the end of data after                  /* Make sure that we won't be past the end of data after
633                   * reading the next length value                   * reading the next length value
# Line 640  save_licence(unsigned char *data, int le Line 640  save_licence(unsigned char *data, int le
640                          return;                          return;
641                  }                  }
642          }          }
643          in_uint32(s_ptr, len);          in_uint32_le(s_ptr, len);
644          if (s_ptr->p + len > data + length)          if (s_ptr->p + len > data + length)
645          {          {
646                  printf("Error in parsing licence key.\n");                  printf("Error in parsing licence key.\n");

Legend:
Removed from v.350  
changed lines
  Added in v.365

  ViewVC Help
Powered by ViewVC 1.1.26