summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-03-16 08:37:19 +0000
committertjr <tjr@FreeBSD.org>2004-03-16 08:37:19 +0000
commitf1f3d78ff5e106edd85749e95403f81f3ea90e3f (patch)
tree77c8ddda1ca0d6efe62d77999c5eb701ff69bc5a /sys/compat/linux/linux_file.c
parent4d1e6cb1d3a76e1def54ef8db3e1bdc42124b9b3 (diff)
downloadFreeBSD-src-f1f3d78ff5e106edd85749e95403f81f3ea90e3f.zip
FreeBSD-src-f1f3d78ff5e106edd85749e95403f81f3ea90e3f.tar.gz
Correct size argument passed to copyinstr() in linux_mount(): mntfromname
and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 64fdb01..857c73d 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -741,10 +741,10 @@ linux_mount(struct thread *td, struct linux_mount_args *args)
NULL);
if (error)
return (error);
- error = copyinstr(args->specialfile, mntfromname, MFSNAMELEN - 1, NULL);
+ error = copyinstr(args->specialfile, mntfromname, MNAMELEN - 1, NULL);
if (error)
return (error);
- error = copyinstr(args->dir, mntonname, MFSNAMELEN - 1, NULL);
+ error = copyinstr(args->dir, mntonname, MNAMELEN - 1, NULL);
if (error)
return (error);
OpenPOWER on IntegriCloud