mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Correct size argument passed to copyinstr() in linux_mount(): mntfromname
and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
This commit is contained in:
parent
3ed29c96cf
commit
2ba9b76668
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127057
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user