/[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 812 by jdmeijer, Mon Feb 14 00:34:23 2005 UTC revision 832 by stargo, Tue Mar 8 01:01:47 2005 UTC
# Line 266  disk_enum_devices(uint32 * id, char *opt Line 266  disk_enum_devices(uint32 * id, char *opt
266          {          {
267                  pos2 = next_arg(optarg, '=');                  pos2 = next_arg(optarg, '=');
268    
269                  strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name));                  strncpy(g_rdpdr_device[*id].name, optarg, sizeof(g_rdpdr_device[*id].name) - 1);
270                  if (strlen(optarg) > 8)                  if (strlen(optarg) > (sizeof(g_rdpdr_device[*id].name) - 1))
271                          fprintf(stderr, "share name %s truncated to %s\n", optarg,                          fprintf(stderr, "share name %s truncated to %s\n", optarg,
272                                  g_rdpdr_device[*id].name);                                  g_rdpdr_device[*id].name);
273    
# Line 925  static FsInfoType * Line 925  static FsInfoType *
925  FsVolumeInfo(char *fpath)  FsVolumeInfo(char *fpath)
926  {  {
927    
         FILE *fdfs;  
928          static FsInfoType info;          static FsInfoType info;
929  #ifdef HAVE_MNTENT_H  #ifdef HAVE_MNTENT_H
930            FILE *fdfs;
931          struct mntent *e;          struct mntent *e;
932  #endif  #endif
933    

Legend:
Removed from v.812  
changed lines
  Added in v.832

  ViewVC Help
Powered by ViewVC 1.1.26