summaryrefslogtreecommitdiffstats
path: root/src/file_tiff_le.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_tiff_le.c')
-rw-r--r--src/file_tiff_le.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_tiff_le.c b/src/file_tiff_le.c
index 3e6e680..b0dfda3 100644
--- a/src/file_tiff_le.c
+++ b/src/file_tiff_le.c
@@ -475,7 +475,7 @@ uint64_t header_check_tiff_le(file_recovery_t *fr, const uint32_t tiff_diroff, c
tiff_next_diroff=(const uint32_t *)entry;
if(le32(*tiff_next_diroff) > 0)
{
- const uint64_t new_offset=header_check_tiff_le(fr, le32(*tiff_next_diroff), depth, count+1);
+ const uint64_t new_offset=header_check_tiff_le(fr, le32(*tiff_next_diroff), depth+1, count+1);
if(new_offset != -1 && max_offset < new_offset)
max_offset=new_offset;
}