summaryrefslogtreecommitdiffstats
path: root/src/file_qbb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/file_qbb.c')
-rw-r--r--src/file_qbb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_qbb.c b/src/file_qbb.c
index 8ee4794..d387e07 100644
--- a/src/file_qbb.c
+++ b/src/file_qbb.c
@@ -93,7 +93,7 @@ static int header_check_qbb(const unsigned char *buffer, const unsigned int buff
static data_check_t data_check_qbb(const unsigned char *buffer, const unsigned int buffer_size, file_recovery_t *file_recovery)
{
- if(file_recovery->file_size > file_recovery->calculated_file_size+512)
+ if(file_recovery->file_size + buffer_size / 2 > file_recovery->calculated_file_size+512)
{
return DC_STOP;
}