diff options
-rw-r--r-- | ufs/sizes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index a5be68ea..8e4a85e9 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -361,7 +361,7 @@ offer_data (struct node *np, { vm_address_t addr; - len = round_page (size); + len = round_page (len); assert (start % vm_page_size == 0); @@ -402,7 +402,8 @@ block_extended (struct node *np, (void *) &buf, vm_page_size); /* If this page is the last one, then zero the excess first */ if (off + vm_page_size > old_size) - bzero (buf + old_size - off, vm_page_size - (old_size - off)); + bzero ((vod *)(buf + old_size - off), + vm_page_size - (old_size - off)); offer_data (np, lbn * sblock->fs_bsize + off, vm_page_size, buf); } |