From 45fb882198a129b3174548433ab635e7ec66417c 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. --- ufs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ufs') diff --git a/ufs/inode.c b/ufs/inode.c index 6976ef78..7f302e47 100644 --- a/ufs/inode.c +++ b/ufs/inode.c @@ -548,8 +548,7 @@ diskfs_get_translator (struct node *np, char **namep, u_int *namelen) transloc = disk_image + fsaddr (sblock, blkno); datalen = *(u_int *)transloc; - if (datalen > *namelen) - vm_allocate (mach_task_self (), (vm_address_t *) namep, datalen, 1); + *namep = malloc (datalen); bcopy (transloc + sizeof (u_int), *namep, datalen); diskfs_end_catch_exception (); -- cgit v1.2.3