More fixup of the size of freelist[]

This commit is contained in:
Bobbi Webber-Manners 2020-02-13 22:42:41 -05:00 committed by GitHub
parent 207c84da21
commit 846ef0bad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,7 @@ ret:
* Read the free list * Read the free list
*/ */
int readfreelist(uchar device) { int readfreelist(uchar device) {
bzero(freelist, 8096); bzero(freelist, 8192);
if (readdiskblock(device, 2, buf) == -1) { if (readdiskblock(device, 2, buf) == -1) {
puts("Error reading volume dir"); puts("Error reading volume dir");
return -1; return -1;
@ -342,7 +342,7 @@ int readfreelist(uchar device) {
p += BLKSZ; p += BLKSZ;
} }
#if 0 #if 0
for (uint i=0; i<8096; ++i) { for (uint i=0; i<8192; ++i) {
pr_uint(freelist[i]); pr_uint(freelist[i]);
putchar(' '); putchar(' ');
} }