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

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

revision 746 by stargo, Mon Aug 9 11:40:41 2004 UTC revision 747 by astrand, Mon Aug 9 13:50:41 2004 UTC
# Line 149  disk_enum_devices(uint32 * id, char *opt Line 149  disk_enum_devices(uint32 * id, char *opt
149          while ((pos = next_arg(optarg, ',')) && *id < RDPDR_MAX_DEVICES)          while ((pos = next_arg(optarg, ',')) && *id < RDPDR_MAX_DEVICES)
150          {          {
151                  pos2 = next_arg(optarg, '=');                  pos2 = next_arg(optarg, '=');
                 strcpy(g_rdpdr_device[*id].name, optarg);  
152    
153                  toupper_str(g_rdpdr_device[*id].name);                  strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name));
154                    if (strlen(optarg) > 8)
155                  /* add trailing colon to name. */                          fprintf(stderr, "share name %s truncated to %s\n", optarg,
156                  strcat(g_rdpdr_device[*id].name, ":");                                  g_rdpdr_device[*id].name);
157    
158                  g_rdpdr_device[*id].local_path = xmalloc(strlen(pos2) + 1);                  g_rdpdr_device[*id].local_path = xmalloc(strlen(pos2) + 1);
159                  strcpy(g_rdpdr_device[*id].local_path, pos2);                  strcpy(g_rdpdr_device[*id].local_path, pos2);
                 printf("DISK %s to %s\n", g_rdpdr_device[*id].name, g_rdpdr_device[*id].local_path);  
160                  g_rdpdr_device[*id].device_type = DEVICE_TYPE_DISK;                  g_rdpdr_device[*id].device_type = DEVICE_TYPE_DISK;
161                  count++;                  count++;
162                  (*id)++;                  (*id)++;

Legend:
Removed from v.746  
changed lines
  Added in v.747

  ViewVC Help
Powered by ViewVC 1.1.26