aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-04-29 20:03:54 +0000
committerRob Landley <rob@landley.net>2006-04-29 20:03:54 +0000
commit9950cab8e0f51f2810b3d9a8d403fdfd98881235 (patch)
treec0492188170a34b00e0486e79022612328a6eecb
parent5bc3f05a23ce7347c51c78c616c19f60bf3b805a (diff)
downloadbusybox-9950cab8e0f51f2810b3d9a8d403fdfd98881235.tar.gz
Patch from Denis Vlasenko:
ix bug (inode_map and zone_map are char* pointers, sizeof() on them gives 4 or 8)
-rw-r--r--util-linux/fsck_minix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index d7d81f130..350c95786 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -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);