diff options
Diffstat (limited to 'src/index_entry.rs')
-rw-r--r-- | src/index_entry.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index_entry.rs b/src/index_entry.rs index 1f5660f..804a5d6 100644 --- a/src/index_entry.rs +++ b/src/index_entry.rs @@ -134,8 +134,7 @@ where { // The "file_reference_data" is at the same position as the `data_offset`, `data_length`, and `padding` fields. // There can either be extra data or a file reference! - let file_reference_data = LittleEndian::read_u64(self.slice); - NtfsFileReference::new(file_reference_data) + NtfsFileReference::new(self.slice[..mem::size_of::<u64>()].try_into().unwrap()) } pub fn flags(&self) -> NtfsIndexEntryFlags { |