aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index 6d2d2084..730b4e60 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -543,8 +543,7 @@ diskfs_get_translator (struct node *np, char **namep, unsigned *namelen)
datalen =
((unsigned char *)transloc)[0] + (((unsigned char *)transloc)[1] << 8);
- if (datalen > *namelen)
- vm_allocate (mach_task_self (), (vm_address_t *) namep, datalen, 1);
+ *namep = malloc (datalen);
bcopy (transloc + 2, *namep, datalen);
diskfs_end_catch_exception ();