aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-29 20:03:54 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-29 20:03:54 +0000
commitba7ce4f75e6b3109842ac182244b53ea32b25ba4 (patch)
treec0492188170a34b00e0486e79022612328a6eecb /util-linux
parent481be4b942c2d90be19dc384d18b95468add8973 (diff)
downloadbusybox-w32-ba7ce4f75e6b3109842ac182244b53ea32b25ba4.tar.gz
busybox-w32-ba7ce4f75e6b3109842ac182244b53ea32b25ba4.tar.bz2
busybox-w32-ba7ce4f75e6b3109842ac182244b53ea32b25ba4.zip
Patch from Denis Vlasenko:
ix bug (inode_map and zone_map are char* pointers, sizeof() on them gives 4 or 8) git-svn-id: svn://busybox.net/trunk/busybox@14972 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-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)
671{ 671{
672 inode_map = xmalloc(IMAPS * BLOCK_SIZE); 672 inode_map = xmalloc(IMAPS * BLOCK_SIZE);
673 zone_map = xmalloc(ZMAPS * BLOCK_SIZE); 673 zone_map = xmalloc(ZMAPS * BLOCK_SIZE);
674 memset(inode_map, 0, sizeof(inode_map)); 674 memset(inode_map, 0, IMAPS * BLOCK_SIZE);
675 memset(zone_map, 0, sizeof(zone_map)); 675 memset(zone_map, 0, ZMAPS * BLOCK_SIZE);
676 inode_buffer = xmalloc(INODE_BUFFER_SIZE); 676 inode_buffer = xmalloc(INODE_BUFFER_SIZE);
677 inode_count = xmalloc(INODES + 1); 677 inode_count = xmalloc(INODES + 1);
678 zone_count = xmalloc(ZONES); 678 zone_count = xmalloc(ZONES);