diff options
author | tjr <tjr@FreeBSD.org> | 2004-03-16 08:37:19 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-03-16 08:37:19 +0000 |
commit | f1f3d78ff5e106edd85749e95403f81f3ea90e3f (patch) | |
tree | 77c8ddda1ca0d6efe62d77999c5eb701ff69bc5a /sys/compat/linux/linux_file.c | |
parent | 4d1e6cb1d3a76e1def54ef8db3e1bdc42124b9b3 (diff) | |
download | FreeBSD-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.c | 4 |
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); |