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

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

revision 1240 by stargo, Sun Jul 2 13:03:22 2006 UTC revision 1242 by astrand, Wed Jul 5 12:07:48 2006 UTC
# Line 1016  FsVolumeInfo(char *fpath) Line 1016  FsVolumeInfo(char *fpath)
1016                                                  info.serial =                                                  info.serial =
1017                                                          (buf[42] << 24) + (buf[41] << 16) +                                                          (buf[42] << 24) + (buf[41] << 16) +
1018                                                          (buf[40] << 8) + buf[39];                                                          (buf[40] << 8) + buf[39];
1019                                                  strncpy(info.label, (char*)buf + 43, 10);                                                  strncpy(info.label, (char *) buf + 43, 10);
1020                                                  info.label[10] = '\0';                                                  info.label[10] = '\0';
1021                                          }                                          }
1022                                          else if (lseek(fd, 32767, SEEK_SET) >= 0)       /* ISO9660 */                                          else if (lseek(fd, 32767, SEEK_SET) >= 0)       /* ISO9660 */
1023                                          {                                          {
1024                                                  read(fd, buf, sizeof(buf));                                                  read(fd, buf, sizeof(buf));
1025                                                  strncpy(info.label, (char*)buf + 41, 32);                                                  strncpy(info.label, (char *) buf + 41, 32);
1026                                                  info.label[32] = '\0';                                                  info.label[32] = '\0';
1027                                                  /* info.Serial = (buf[128]<<24)+(buf[127]<<16)+(buf[126]<<8)+buf[125]; */                                                  /* info.Serial = (buf[128]<<24)+(buf[127]<<16)+(buf[126]<<8)+buf[125]; */
1028                                          }                                          }

Legend:
Removed from v.1240  
changed lines
  Added in v.1242

  ViewVC Help
Powered by ViewVC 1.1.26