Changeset 752ccee in mainline


Ignore:
Timestamp:
2008-01-08T19:44:19Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7fff5eab
Parents:
41a0d27
Message:

Previous commit was toxic. When emulating gaps, zero out the reallocated buffer, not the original one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    r41a0d27 r752ccee  
    369369        }
    370370        /* Clear any newly allocated memory in order to emulate gaps.  */
    371         memset(dentry->data + dentry->size, 0, delta);
     371        memset(newdata + dentry->size, 0, delta);
    372372        dentry->size += delta;
    373373        dentry->data = newdata;
Note: See TracChangeset for help on using the changeset viewer.