summaryrefslogtreecommitdiffstats
path: root/src/file_au.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-09-21 18:10:27 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-09-21 18:10:27 +0200
commit2cc3a1fd2bab0e805f110931ed012ea7ec18fb32 (patch)
tree29a74ce41d47a9f9d2a2198769de8a69cbf5ab9d /src/file_au.c
parentb75c2fca2a39cea956efff127c345c00e99486f0 (diff)
PhotoRec: force to uint64_t some calculated_file_size
Diffstat (limited to 'src/file_au.c')
-rw-r--r--src/file_au.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_au.c b/src/file_au.c
index aa14361..bab248b 100644
--- a/src/file_au.c
+++ b/src/file_au.c
@@ -67,7 +67,7 @@ static int header_check_au(const unsigned char *buffer, const unsigned int buffe
reset_file_recovery(file_recovery_new);
file_recovery_new->min_filesize=111;
file_recovery_new->extension=file_hint_au.extension;
- file_recovery_new->calculated_file_size=be32(au->offset)+be32(au->size);
+ file_recovery_new->calculated_file_size=(uint64_t)be32(au->offset)+be32(au->size);
file_recovery_new->data_check=&data_check_size;
file_recovery_new->file_check=&file_check_size;
return 1;