diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-11-21 18:54:11 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-11-21 18:54:11 +0000 |
commit | 2dfb9cb7a9d1e3e7db4778f9ae85e24ffab23c92 (patch) | |
tree | 435db176c6e632d3a18bf1482fc32e480d9da9df /libdiskfs/file-get-fs-opts.c | |
parent | abd09dd92dfa78acaa9e914f25719487027addf1 (diff) |
Include <string.h>.
(diskfs_S_file_get_fs_options): Dereference DATA_LEN in call to
vm_allocate.
Diffstat (limited to 'libdiskfs/file-get-fs-opts.c')
-rw-r--r-- | libdiskfs/file-get-fs-opts.c | 5 |
1 files 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 <errno.h> - +#include <string.h> #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); |