Use proper MFSNAMELEN for fs type.

MFC after:	2 weeks
Reviewed by:	rodrigc
Also spotted by:ambrisko
This commit is contained in:
bdrewery 2014-04-12 21:39:17 +00:00
parent 6895308124
commit b749ffee6a

View File

@ -748,7 +748,7 @@ sys_mount(td, uap)
return (EOPNOTSUPP);
}
ma = mount_argsu(ma, "fstype", uap->type, MNAMELEN);
ma = mount_argsu(ma, "fstype", uap->type, MFSNAMELEN);
ma = mount_argsu(ma, "fspath", uap->path, MNAMELEN);
ma = mount_argb(ma, flags & MNT_RDONLY, "noro");
ma = mount_argb(ma, !(flags & MNT_NOSUID), "nosuid");