From 2dfb9cb7a9d1e3e7db4778f9ae85e24ffab23c92 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 21 Nov 1995 18:54:11 +0000 Subject: Include . (diskfs_S_file_get_fs_options): Dereference DATA_LEN in call to vm_allocate. --- libdiskfs/file-get-fs-opts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libdiskfs/file-get-fs-opts.c b/libdiskfs/file-get-fs-opts.c index 9844801e..d8d2bca9 100644 --- a/libdiskfs/file-get-fs-opts.c +++ b/libdiskfs/file-get-fs-opts.c @@ -21,7 +21,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include - +#include #include "priv.h" error_t @@ -41,7 +41,8 @@ diskfs_S_file_get_fs_options (struct protid *cred, if (!err) /* Move ARGZ from a malloced buffer into a vm_alloced one. */ { - err = vm_allocate (mach_task_self (), (vm_address_t *)data, data_len, 1); + err = vm_allocate (mach_task_self (), (vm_address_t *)data, + *data_len, 1); if (!err) bcopy (argz, *data, *data_len); free (argz); -- cgit v1.2.3