summaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index a3483c00..12e249e4 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -726,7 +726,7 @@ diskfs_get_translator (struct node *np, char **namep, unsigned *namelen)
datalen =
((unsigned char *)transloc)[0] + (((unsigned char *)transloc)[1] << 8);
- if (datalen > block_size)
+ if (datalen > block_size - 2)
err = EFTYPE; /* ? */
else
{