From c432c0c8978e43b5e02c4706c54be456a541946f Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sat, 26 Jul 2014 23:04:09 +0200 Subject: [PATCH] PhotoRec: fix when using a blocksize of 1 byte --- src/photorec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/photorec.c b/src/photorec.c index 724c7bed..9d9c2e4e 100644 --- a/src/photorec.c +++ b/src/photorec.c @@ -885,7 +885,7 @@ static int file_block_remove_from_sp(alloc_data_t *list_search_space, alloc_data tmp->start+=blocksize; *offset += blocksize; tmp->file_stat=NULL; - if(tmp->start < tmp->end) + if(tmp->start <= tmp->end) return 0; *new_current_search_space=td_list_entry(tmp->list.next, alloc_data_t, list); *offset=(*new_current_search_space)->start;