summaryrefslogtreecommitdiffstats
path: root/src/fatp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-02-16 20:01:52 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-02-16 20:01:52 +0100
commitee97a896a22fcf1ff0bd7afd0ab18bba4d83185c (patch)
tree12df59b08a485616d39398f95f222f12d6cfa469 /src/fatp.c
parent1bb6df5595fd5ae52aebf20ca87d30f44fa507b4 (diff)
Fix PhotoRec FAT free space carving, the first sector of cluster 2 was erronously removed from the disk space to analyse.
Diffstat (limited to 'src/fatp.c')
-rw-r--r--src/fatp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fatp.c b/src/fatp.c
index 615d8e4..50ff23a 100644
--- a/src/fatp.c
+++ b/src/fatp.c
@@ -50,7 +50,7 @@ static void fat16_remove_used_space(disk_t *disk_car,const partition_t *partitio
buffer=(unsigned char *)MALLOC(sector_size);
p16=(const uint16_t*)buffer;
del_search_space(list_search_space, partition->part_offset,
- partition->part_offset+(uint64_t)(start_data*sector_size));
+ partition->part_offset+(uint64_t)(start_data*sector_size)-1);
for(prev_cluster=2;prev_cluster<=no_of_cluster+1;prev_cluster++)
{
unsigned int offset_o;