diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:47:47 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-23 18:47:47 +0000 |
commit | 8d744ba53bed7d40baab38f390df7b60a00fd9fc (patch) | |
tree | 86bb8945d8e26406eb716fdbb72530ef26cba67d | |
parent | eb186a7fc9ce5b4c35986128e52372142af8fc37 (diff) |
fixup
-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); } |