aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 0b1bcca96f76..1670d4ece9f4 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -168,8 +168,8 @@ vfs_mount(p, fstype, fspath, fsflags, fsdata)
* variables will fit in our mp buffers, including the
* terminating NUL.
*/
- if ((strlen(fstype) >= MNAMELEN - 1) ||
- (strlen(fspath) >= MFSNAMELEN - 1))
+ if ((strlen(fstype) >= MFSNAMELEN - 1) ||
+ (strlen(fspath) >= MNAMELEN - 1))
return (ENAMETOOLONG);
if (usermount == 0 && (error = suser(p)))