Skip to content

Commit

Permalink
use the function for advancing a cluster reference in writefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerwk committed Mar 10, 2018
1 parent d357747 commit 5e8b1c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/fattool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1951,9 +1951,8 @@ int main(int argn, char *argv[]) {
fatreferencesettarget(f, directory, index, cl, next);
fatsetnextcluster(f, next, FAT_EOF);

directory = NULL;
index = 0;
cl = next;
fatreferencenext(f, &directory, &index, &cl);

size += res;
} while (res == csize);

Expand Down

0 comments on commit 5e8b1c6

Please sign in to comment.