Patch from Denis Vlasenko: ix bug (inode_map and zone_map are char* pointers, sizeof() on them gives 4 or 8)
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -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); | |