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 /ext2fs | |
parent | b550d115ec1f0ecfc5793544cc260ea0f10ab8e2 (diff) |
(diskfs_get_translator): Conform to new memory usage semantic.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/inode.c | 3 |
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 (); |