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:
Rob Landley 2006-04-29 20:03:54 +00:00
parent 5bc3f05a23
commit 9950cab8e0

View File

@ -671,8 +671,8 @@ static void read_tables(void)
{
inode_map = xmalloc(IMAPS * BLOCK_SIZE);
zone_map = xmalloc(ZMAPS * BLOCK_SIZE);
memset(inode_map, 0, sizeof(inode_map));
memset(zone_map, 0, sizeof(zone_map));
memset(inode_map, 0, IMAPS * BLOCK_SIZE);
memset(zone_map, 0, ZMAPS * BLOCK_SIZE);
inode_buffer = xmalloc(INODE_BUFFER_SIZE);
inode_count = xmalloc(INODES + 1);
zone_count = xmalloc(ZONES);