Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 69c4172 in mainline


Ignore:
Timestamp:
2012-02-19T20:30:56Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
207ad8bd
Parents:
50e754e
Message:

mkexfat: fix FAT initialization

File:
1 edited

Legend:

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

    r50e754e r69c4172  
    204204        pfat[0] = pfat[1] = 0x00000000;
    205205
    206         for (i = FAT_SECTOR_START + 1; i < cfg->fat_sector_count; ++i) {
    207                 rc = block_write_direct(service_id, i, 1, pfat);
     206        for (i = 0; i < cfg->fat_sector_count; ++i) {
     207                rc = block_write_direct(service_id,
     208                    FAT_SECTOR_START + i + 1, 1, pfat);
    208209                if (rc != EOK)
    209210                        goto error;
Note: See TracChangeset for help on using the changeset viewer.