Changeset d3ce9515 in mainline


Ignore:
Timestamp:
2011-03-11T18:10:43Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0dd2717
Parents:
197b671
Message:

Fix wrong memory allocation for inode table buffer

File:
1 edited

Legend:

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

    r197b671 rd3ce9515  
    331331        itable_size = CONVERT_1K_OFF(sb->itable_size, sb->block_size);
    332332
    333         itable_buf = malloc(sb->block_size);
     333        itable_buf = malloc(MFS_MIN_BLOCKSIZE);
    334334
    335335        if (!itable_buf)
    336336                return ENOMEM;
    337337
    338         memset(itable_buf, 0x00, sb->block_size);
     338        memset(itable_buf, 0x00, MFS_MIN_BLOCKSIZE);
    339339
    340340        for (i = 0; i < itable_size; ++i, ++itable_off) {
Note: See TracChangeset for help on using the changeset viewer.