From 4a8dd5b41abfc886a48f09ad61da6902197b52ab Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 29 Mar 1996 21:52:25 +0000 Subject: (diskfs_truncate): Cast DI->di_shortlink to correct type before adding a character count to it. --- ufs/sizes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ufs') 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; -- cgit v1.2.3