summaryrefslogtreecommitdiffstats
path: root/src/fatp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-01-25 14:56:41 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-01-25 14:56:41 +0100
commit6471bd8ac54ded91f25eb44d88bdad71b0c7f988 (patch)
tree2c438505b40385eb8a5a372d8116b5cb6c745ff9 /src/fatp.c
parentda4a34838def1e07d8ed678a3e61e391290f6ab8 (diff)
PhotoRec: Remove FAT copies and boot sector when searching from FAT32 free space
Diffstat (limited to 'src/fatp.c')
-rw-r--r--src/fatp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fatp.c b/src/fatp.c
index 359abb3..64421fe 100644
--- a/src/fatp.c
+++ b/src/fatp.c
@@ -143,6 +143,8 @@ static void fat32_remove_used_space(disk_t *disk_car,const partition_t *partitio
log_trace("fat32_remove_used_space\n");
buffer=(unsigned char *)MALLOC(sector_size);
p32=(uint32_t*)buffer;
+ del_search_space(list_search_space, partition->part_offset,
+ partition->part_offset+(uint64_t)(start_data*sector_size)-1);
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
unsigned long int cluster;