summaryrefslogtreecommitdiffstats
path: root/src/file_png.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_png.c')
-rw-r--r--src/file_png.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/file_png.c b/src/file_png.c
index 070f608..ee95146 100644
--- a/src/file_png.c
+++ b/src/file_png.c
@@ -103,9 +103,7 @@ static void file_check_png(file_recovery_t *file_recovery)
const unsigned char mng_footer[4]= {'M','E','N','D'};
const unsigned char png_footer[4]= {'I','E','N','D'};
if(strstr(file_recovery->filename,".mng")!=NULL)
- file_search_footer(file_recovery, mng_footer,sizeof(mng_footer));
+ file_search_footer(file_recovery, mng_footer, sizeof(mng_footer), 4);
else
- file_search_footer(file_recovery, png_footer,sizeof(png_footer));
- if(file_recovery->file_size>0)
- file_recovery->file_size+=4;
+ file_search_footer(file_recovery, png_footer, sizeof(png_footer), 4);
}