Correct size argument passed to copyinstr() in linux_mount(): mntfromname

and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
This commit is contained in:
tjr 2004-03-16 08:37:19 +00:00
parent 2a9e62dd03
commit 42b110f6f0

View File

@ -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);