summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-14 20:19:46 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-14 20:19:46 +0000
commit45fb882198a129b3174548433ab635e7ec66417c (patch)
tree5040237ae6e767c5ada3ef5676bf27ab01a9fe9f /ufs
parent518e36e2049626337778af39c7cd64e4deba59ff (diff)
(diskfs_get_translator): Conform to new memory usage semantic.
Diffstat (limited to 'ufs')
-rw-r--r--ufs/inode.c3
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 ();