Changeset df4fbe1 in mainline for uspace/app/mkexfat/mkexfat.c


Ignore:
Timestamp:
2012-03-01T08:22:41Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4546fc3
Parents:
8d8ad19
Message:

mkexfat: fix fat clusters allocation bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkexfat/mkexfat.c

    r8d8ad19 rdf4fbe1  
    445445        aoff64_t fat_sec = cur_cls / fat_entries + FAT_SECTOR_START;
    446446        uint32_t *fat;
     447        uint32_t next_cls = cur_cls;
    447448
    448449        cur_cls %= fat_entries;
     
    461462
    462463        for (; cur_cls < fat_entries && ncls > 1; ++cur_cls, --ncls)
    463                 fat[cur_cls] = host2uint32_t_le(cur_cls + 1);
     464                fat[cur_cls] = host2uint32_t_le(++next_cls);
    464465
    465466        if (cur_cls == fat_entries) {
Note: See TracChangeset for help on using the changeset viewer.