summaryrefslogtreecommitdiffstats
path: root/src/file_cwk.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-05-27 09:19:13 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-05-27 09:19:13 +0200
commit7b41ff4c5709cb486d2e5dfbd64e364785077d67 (patch)
treea1868db023726d2c22ee5890f3283bbf3f74f7aa /src/file_cwk.c
parent8b30c36b5d8b6b44279622351636fd4468381a5b (diff)
PhotoRec: file_search_footer() gets a new parameter
Diffstat (limited to 'src/file_cwk.c')
-rw-r--r--src/file_cwk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/file_cwk.c b/src/file_cwk.c
index 4e3bc21..cbaca0c 100644
--- a/src/file_cwk.c
+++ b/src/file_cwk.c
@@ -66,7 +66,5 @@ static int header_check_cwk(const unsigned char *buffer, const unsigned int buff
static void file_check_cwk(file_recovery_t *file_recovery)
{
const unsigned char cwk_footer[4]= {0xf0, 0xf1, 0xf2, 0xf3};
- file_search_footer(file_recovery, cwk_footer,sizeof(cwk_footer));
- if(file_recovery->file_size>0)
- file_recovery->file_size+=4;
+ file_search_footer(file_recovery, cwk_footer, sizeof(cwk_footer), 4);
}