summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-07-26 23:04:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-07-26 23:04:09 +0200
commitc432c0c8978e43b5e02c4706c54be456a541946f (patch)
tree7730c9631f5e09b15d8964cfe598d8fae1748b92 /src/photorec.c
parentd14031f68dca29a186312823b68e2ede63cd222a (diff)
PhotoRec: fix when using a blocksize of 1 byte
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 724c7be..9d9c2e4 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;