summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-09-11 18:34:28 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-09-11 18:34:28 +0200
commitf130fc9104ccf9d2e7aa9f2894c3c49bf7c68de2 (patch)
treee5d5bc570c4b7ecd642e763e03ccf9bbcb8cba39 /src/photorec.c
parentca5c8fc1574a65ceea836bcfa60921b72e96cf8c (diff)
PhotoRec: in bruteforce mode, assume the error location is never after the estimated error location
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/photorec.c b/src/photorec.c
index a3c24e7..d2d929d 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -842,7 +842,7 @@ static alloc_data_t *file_error_aux(alloc_data_t *space, alloc_data_t *file, con
struct td_list_head *tmp;
struct td_list_head *next;
uint64_t size=0;
- const uint64_t file_size_on_disk=(file_size+blocksize-1)/blocksize*blocksize;
+ const uint64_t file_size_on_disk=file_size/blocksize*blocksize;
for(tmp=&file->list, next=tmp->next; tmp!=&space->list; tmp=next, next=tmp->next)
{
alloc_data_t *element=td_list_entry(tmp, alloc_data_t, list);