diff options
Diffstat (limited to 'Kernel/Syscalls/uname.cpp')
-rw-r--r-- | Kernel/Syscalls/uname.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/uname.cpp b/Kernel/Syscalls/uname.cpp index ea8128d660..09922a9624 100644 --- a/Kernel/Syscalls/uname.cpp +++ b/Kernel/Syscalls/uname.cpp @@ -23,7 +23,7 @@ ErrorOr<FlatPtr> Process::sys$uname(Userspace<utsname*> user_buf) memcpy(buf.machine, "x86_64", 7); #endif - hostname().with_shared([&](const auto& name) { + hostname().with_shared([&](auto const& name) { auto length = min(name->length(), UTSNAME_ENTRY_LEN - 1); memcpy(buf.nodename, name->characters(), length); buf.nodename[length] = '\0'; |