Skip to content

Commit

Permalink
Fix bitmath bug
Browse files Browse the repository at this point in the history
Could cause complete failure of th filesystem on bigger volumes.
  • Loading branch information
geomaster committed Jun 16, 2017
1 parent de0bc80 commit 3c35b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/minix/servers/fat32/requests.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ int do_read_dir_entry(fat32_dir_t* dir, fat32_entry_t* dst, int* was_written,
}

int first_cluster_nr =
(short_entry->first_cluster_nr_high << 8) |
(short_entry->first_cluster_nr_high << 16) |
short_entry->first_cluster_nr_low;

// This is needed so that do_open_dir and do_open_file on this fs_dir_t can
Expand Down

0 comments on commit 3c35b14

Please sign in to comment.