summaryrefslogtreecommitdiffstats
path: root/src/file_fits.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-04-29 19:03:30 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2018-04-29 19:03:30 +0200
commit3348b9932ab4e61c0321d0e88db54f0e803b5103 (patch)
treec7cbaab6977bc530a568f5bf2f12289bd2ca373e /src/file_fits.c
parent26566702534823806492008da908a5db207843b4 (diff)
PhotoRec: Change recovered filename to handle more than 2^32 sectors.
See https://github.com/cgsecurity/testdisk/issues/47
Diffstat (limited to 'src/file_fits.c')
-rw-r--r--src/file_fits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_fits.c b/src/file_fits.c
index 606772f..12065ec 100644
--- a/src/file_fits.c
+++ b/src/file_fits.c
@@ -116,7 +116,7 @@ static data_check_t data_check_fits(const unsigned char *buffer, const unsigned
{
unsigned int i=file_recovery->calculated_file_size - file_recovery->file_size + buffer_size/2;
if(memcmp(&buffer[i], "XTENSION", 8)!=0)
- break;
+ break;
{
const unsigned int i_org=i;
const uint64_t tmp=fits_info(buffer, buffer_size, file_recovery, &i);