aboutsummaryrefslogtreecommitdiffstats
path: root/src/binary
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary')
-rw-r--r--src/binary/reader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary/reader.rs b/src/binary/reader.rs
index 770b12f..d9bf667 100644
--- a/src/binary/reader.rs
+++ b/src/binary/reader.rs
@@ -93,7 +93,7 @@ impl<R: Read + Seek> EventReader<R> {
// File size minus trailer and header
// Truncated to max(usize)
- self.max_allocation = trailer_start.saturating_sub(6 + 8) as usize;
+ self.max_allocation = trailer_start.saturating_sub(8) as usize;
// Read offset table
try!(self.reader.seek(SeekFrom::Start(offset_table_offset)));