aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_extattr.c4
-rw-r--r--sys/kern/vfs_syscalls.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 0b1bcca96f76..1670d4ece9f4 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.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)))
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)))