diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-03-29 21:52:25 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-03-29 21:52:25 +0000 |
commit | fd6a62408f06410d2b54426fa70bd4356dfea20c (patch) | |
tree | 93907036557048d5df4736676b4b8f7f1ab861e0 /ufs/sizes.c | |
parent | 80cab6b2b790ea93fc76253fe73ebc3dca549e68 (diff) |
(diskfs_truncate): Cast DI->di_shortlink to correct type before adding
a character count to it.
Diffstat (limited to 'ufs/sizes.c')
-rw-r--r-- | ufs/sizes.c | 2 |
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; |