summaryrefslogtreecommitdiffstats
path: root/src/file_xm.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:13:27 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-11-01 11:13:27 +0100
commit3718ffa3328b530ad61bba2007842716201b89a2 (patch)
treeee26ce4ec629e929af51ab6aebf9cf910420e815 /src/file_xm.c
parent650b7d41e93b08100d22d386f5d123d971c4884e (diff)
PhotoRec: record last valid offset of a file, will be usefull for bruteforce
Diffstat (limited to 'src/file_xm.c')
-rw-r--r--src/file_xm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_xm.c b/src/file_xm.c
index 7816b11..5b18e96 100644
--- a/src/file_xm.c
+++ b/src/file_xm.c
@@ -148,6 +148,7 @@ static void file_check_xm(file_recovery_t *fr)
fr->file_size = 0;
fr->offset_error=0;
+ fr->offset_ok=0;
if (fseek(fr->handle, 70, SEEK_SET) == -1)
return;