summaryrefslogtreecommitdiff
path: root/ufs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ufs/inode.c')
-rw-r--r--ufs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index 28f18dbd..2098211f 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -613,7 +613,7 @@ diskfs_get_translator (struct node *np, char **namep, u_int *namelen)
transloc = disk_image + fsaddr (sblock, blkno);
datalen = *(u_int *)transloc;
- if (datalen > sblock->fs_bsize)
+ if (datalen > sblock->fs_bsize - sizeof (u_int))
err = EFTYPE;
else
{