summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ufs/sizes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c
index 0ecc7d31..249b0ff9 100644
--- a/ufs/sizes.c
+++ b/ufs/sizes.c
@@ -61,7 +61,7 @@ diskfs_truncate (struct node *np,
err = diskfs_catch_exception ();
if (err)
return err;
- bzero (di->di_shortlink + length, np->dn_stat.st_size - length);
+ bzero ((char *)di->di_shortlink + length, np->dn_stat.st_size - length);
diskfs_end_catch_exception ();
np->dn_stat.st_size = length;
np->dn_set_ctime = np->dn_set_mtime = 1;