Skip to content

Commit

Permalink
fix: due to a bug in the code, files larger than 1 cluster wouldn't b…
Browse files Browse the repository at this point in the history
…e read properly
  • Loading branch information
Oakchris1955 committed Jul 27, 2024
1 parent f9ca087 commit 3116e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ where
}
}

match self.fs.read_nth_FAT_entry(self.entry.data_cluster)? {
match self.fs.read_nth_FAT_entry(current_cluster)? {
FATEntry::Allocated(next_cluster) => current_cluster = next_cluster,
_ => return Err(FSError::UnexpectedEOF),
};
Expand Down

0 comments on commit 3116e9d

Please sign in to comment.