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

Changeset dccf721 in mainline for uspace/srv/bd/file_bd/file_bd.c


Ignore:
Timestamp:
2010-01-09T21:05:35Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
08232ee
Parents:
336d2faa
Message:

Add mkfat utility. Fix block writing in libblock and file_bd driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/file_bd/file_bd.c

    r336d2faa rdccf721  
    213213
    214214        fseek(img, ba * block_size, SEEK_SET);
    215         n_wr = fread(buf, block_size, cnt, img);
     215        n_wr = fwrite(buf, block_size, cnt, img);
    216216
    217217        if (ferror(img) || n_wr < cnt) {
Note: See TracChangeset for help on using the changeset viewer.