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

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

revision 317 by astrand, Mon Feb 10 12:56:34 2003 UTC revision 318 by astrand, Mon Feb 10 12:58:51 2003 UTC
# Line 97  save_licence(unsigned char *data, int le Line 97  save_licence(unsigned char *data, int le
97                  if ((s_ptr->p) + 4 > data + length)                  if ((s_ptr->p) + 4 > data + length)
98                  {                  {
99                          printf("Error in parsing licence key.\n");                          printf("Error in parsing licence key.\n");
100                          printf("Strings %d end value %x > supplied length (%x)\n", i,                          printf("Strings %d end value %x > supplied length (%x)\n", i,
101                                 (unsigned int)s_ptr->p,                                 (unsigned int) s_ptr->p, (unsigned int) data + length);
                                (unsigned int)data + length);  
102                          return;                          return;
103                  }                  }
104          }          }
# Line 107  save_licence(unsigned char *data, int le Line 106  save_licence(unsigned char *data, int le
106          if (s_ptr->p + len > data + length)          if (s_ptr->p + len > data + length)
107          {          {
108                  printf("Error in parsing licence key.\n");                  printf("Error in parsing licence key.\n");
109                  printf("End of licence %x > supplied length (%x)\n",                  printf("End of licence %x > supplied length (%x)\n",
110                         (unsigned int)s_ptr->p + len,                         (unsigned int) s_ptr->p + len, (unsigned int) data + length);
                        (unsigned int)data + length);  
111                  return;                  return;
112          }          }
113    
# Line 145  save_licence(unsigned char *data, int le Line 143  save_licence(unsigned char *data, int le
143          fnamewrk = xmalloc(strlen(fname) + 12);          fnamewrk = xmalloc(strlen(fname) + 12);
144          for (y = 0;; y++)          for (y = 0;; y++)
145          {          {
146                  sprintf(fnamewrk, "%s.%lu", fname, (long unsigned int)y);                  sprintf(fnamewrk, "%s.%lu", fname, (long unsigned int) y);
147                  fnwrkfd = open(fnamewrk, O_WRONLY | O_CREAT | O_EXCL, 0600);                  fnwrkfd = open(fnamewrk, O_WRONLY | O_CREAT | O_EXCL, 0600);
148                  if (fnwrkfd == -1)                  if (fnwrkfd == -1)
149                  {                  {
# Line 477  licence_process(STREAM s) Line 475  licence_process(STREAM s)
475                          unimpl("licence tag 0x%x\n", tag);                          unimpl("licence tag 0x%x\n", tag);
476          }          }
477  }  }
   

Legend:
Removed from v.317  
changed lines
  Added in v.318

  ViewVC Help
Powered by ViewVC 1.1.26