mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Patch from Denis Vlasenko:
ix bug (inode_map and zone_map are char* pointers, sizeof() on them gives 4 or 8)
This commit is contained in:
parent
5bc3f05a23
commit
9950cab8e0
@ -671,8 +671,8 @@ static void read_tables(void)
|
|||||||
{
|
{
|
||||||
inode_map = xmalloc(IMAPS * BLOCK_SIZE);
|
inode_map = xmalloc(IMAPS * BLOCK_SIZE);
|
||||||
zone_map = xmalloc(ZMAPS * BLOCK_SIZE);
|
zone_map = xmalloc(ZMAPS * BLOCK_SIZE);
|
||||||
memset(inode_map, 0, sizeof(inode_map));
|
memset(inode_map, 0, IMAPS * BLOCK_SIZE);
|
||||||
memset(zone_map, 0, sizeof(zone_map));
|
memset(zone_map, 0, ZMAPS * BLOCK_SIZE);
|
||||||
inode_buffer = xmalloc(INODE_BUFFER_SIZE);
|
inode_buffer = xmalloc(INODE_BUFFER_SIZE);
|
||||||
inode_count = xmalloc(INODES + 1);
|
inode_count = xmalloc(INODES + 1);
|
||||||
zone_count = xmalloc(ZONES);
|
zone_count = xmalloc(ZONES);
|
||||||
|
Loading…
Reference in New Issue
Block a user