Use proper MFSNAMELEN for fs type.

MFC after:	2 weeks
Reviewed by:	rodrigc
Also spotted by:ambrisko
This commit is contained in:
Bryan Drewery 2014-04-12 21:39:17 +00:00
parent a59ff25642
commit 97c0df733f

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