Skip to content

Commit

Permalink
Fixed directory sizing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ecpre committed Mar 4, 2023
1 parent cb578f4 commit 7ce991c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FuseRedSea.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ void move_directory_to_end(struct redsea_directory* directory) {
fseek(image, new_block*BLOCK_SIZE, SEEK_SET);
fseek(image, 40, SEEK_CUR);
fwrite(nb_char, 8, 1, image);
fwrite(size_char, 8, 1, image);
for (int i = 0; i < directory -> num_children; i++) {
rewind(image);
fseek(image, directory->block*BLOCK_SIZE, SEEK_SET);
Expand Down

0 comments on commit 7ce991c

Please sign in to comment.