Skip to content

Commit

Permalink
Fixed bug in trailer block computation
Browse files Browse the repository at this point in the history
Credit to markusn for finding this
  • Loading branch information
4ZM committed Mar 12, 2013
1 parent 44bd4d2 commit 9ea72ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ size_t sector_count(mf_size_t size) {
}

int is_trailer_block(size_t block) {
return (block + 1) % (block < 0x40 ? 4 : 0x10) == 0;
return (block + 1) % (block < 0x80 ? 4 : 0x10) == 0;
}

size_t block_to_sector(size_t block) {
Expand Down

0 comments on commit 9ea72ea

Please sign in to comment.