summaryrefslogtreecommitdiffstats
path: root/src/analyse.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-01-07 20:52:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-01-07 20:52:33 +0100
commit2c4b6dcbb956f43b07ecb0d1f6ab661c934693bc (patch)
treef07d624b136400bb6b0336af74ee548089655ed4 /src/analyse.c
parent26f724eacd72e64f48db2aa6dda6718b6c446a6b (diff)
Fix exFAT recovery using backup boot sector
Diffstat (limited to 'src/analyse.c')
-rw-r--r--src/analyse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/analyse.c b/src/analyse.c
index bfe9fc8..5aeae0b 100644
--- a/src/analyse.c
+++ b/src/analyse.c
@@ -108,9 +108,7 @@ int search_EXFAT_backup(unsigned char *buffer, disk_t *disk, partition_t *partit
if(le16(exfat_header->signature)==0xAA55 &&
recover_EXFAT(disk, exfat_header, partition)==0)
{
- strncpy(partition->info,"EXFAT found using backup sector!",sizeof(partition->info));
- partition->sb_offset=6*512;
- partition->part_offset-=partition->sb_offset; /* backup sector */
+ /* part_offset has already been updated if found using backup sector */
return 1;
}
}