summaryrefslogtreecommitdiffstats
path: root/src/hdaccess.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:32:25 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:37:54 +0200
commit8ee9f770fa81752c44b9bfc38e04ab88eafeec4a (patch)
tree7e98c9aa8b03c76d2ea95f122ff9f4ceda59e77b /src/hdaccess.c
parent5af560198b4ed8380f25c615cd98c1aa6c33e664 (diff)
Fix detection of Encase 6
Fix detection of OpenBSD SCSI device
Diffstat (limited to 'src/hdaccess.c')
-rw-r--r--src/hdaccess.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index ffa180d..1cbf29a 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -427,7 +427,7 @@ list_disk_t *hd_parse(list_disk_t *list_disk, const int verbose, const arch_fnct
}
for(i=0;i<8;i++)
{
- device_scsi2[strlen(device_scsi2)-1]='0'+i;
+ device_scsi2[strlen(device_scsi2)-2]='0'+i;
list_disk=insert_new_disk(list_disk,file_test_availability(device_scsi2,verbose,arch,testdisk_mode));
}
for(i=0;i<8;i++)
@@ -1446,7 +1446,7 @@ disk_t *file_test_availability(const char *device, const int verbose, const arch
disk_car->disk_real_size=(uint64_t)disk_car->geom.cylinders * disk_car->geom.heads_per_cylinder * disk_car->geom.sectors_per_head * disk_car->sector_size;
disk_car->offset=*(unsigned long*)(buffer+19);
}
- else if(memcmp(buffer, evf_file_signature, 8)==0 && le16(ewf->fields_start)==0)
+ else if(memcmp(buffer, evf_file_signature, 8)==0)
{
free(buffer);
free(data);