summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-get-fs-opts.c5
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);