diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-14 20:19:46 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-14 20:19:46 +0000 |
commit | 76779574f21d764c78e37229c0977a2651ebac95 (patch) | |
tree | e5ed7a7877863d91284a701d78277147f14b58b0 /ufs | |
parent | b550d115ec1f0ecfc5793544cc260ea0f10ab8e2 (diff) |
(diskfs_get_translator): Conform to new memory usage semantic.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 (); |