summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-29 21:52:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-29 21:52:25 +0000
commit4a8dd5b41abfc886a48f09ad61da6902197b52ab (patch)
tree6184ae28451180aba0d55f578dcc6ed7dccf6425 /ufs
parent128e6bb2b9013af3cf7d7a05eec48f988fafae6a (diff)
(diskfs_truncate): Cast DI->di_shortlink to correct type before adding
a character count to it.
Diffstat (limited to 'ufs')
-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;