summaryrefslogtreecommitdiffstats
path: root/src/phbs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:39:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-04-27 08:39:24 +0200
commitc1afbdf78024f1590b7805244ddc40ba16297379 (patch)
treee2f5a9d72e1a59569cfcb21342c5cfaa4419086a /src/phbs.c
parent8ee9f770fa81752c44b9bfc38e04ab88eafeec4a (diff)
PhotoRec: modify internals for brute-force recovery
Diffstat (limited to 'src/phbs.c')
-rw-r--r--src/phbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/phbs.c b/src/phbs.c
index 63e7b33..d7321f1 100644
--- a/src/phbs.c
+++ b/src/phbs.c
@@ -99,11 +99,12 @@ int photorec_find_blocksize(disk_t *disk_car, partition_t *partition, const int
const unsigned int read_size=((*blocksize)>65536?(*blocksize):65536);
alloc_data_t *current_search_space;
file_recovery_t file_recovery;
+ reset_file_recovery(&file_recovery);
+ file_recovery.blocksize=*blocksize;
buffer_size=(*blocksize)+READ_SIZE;
buffer_start=(unsigned char *)MALLOC(buffer_size);
buffer_olddata=buffer_start;
buffer=buffer_olddata+(*blocksize);
- reset_file_recovery(&file_recovery);
start_time=time(NULL);
previous_time=start_time;
memset(buffer_olddata,0,(*blocksize));