From 76779574f21d764c78e37229c0977a2651ebac95 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 14 Jun 1995 20:19:46 +0000 Subject: (diskfs_get_translator): Conform to new memory usage semantic. --- ext2fs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext2fs/inode.c') 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 (); -- cgit v1.2.3