From 145884985054e0259b4b5173a9c18c85d08dc107 Mon Sep 17 00:00:00 2001 From: Liav A Date: Thu, 24 Aug 2023 21:34:01 +0300 Subject: [PATCH] Kernel: Remove FixedStringBuffer template argument in prctl.cpp This template argument can be inferred automatically and is not needed. --- Kernel/Syscalls/prctl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Syscalls/prctl.cpp b/Kernel/Syscalls/prctl.cpp index bbcb902b1e..116a447cc9 100644 --- a/Kernel/Syscalls/prctl.cpp +++ b/Kernel/Syscalls/prctl.cpp @@ -54,7 +54,7 @@ ErrorOr Process::sys$prctl(int option, FlatPtr arg1, FlatPtr arg2) Userspace buffer = arg1; size_t buffer_size = static_cast(arg2); Process::Name process_name {}; - TRY(try_copy_name_from_user_into_fixed_string_buffer<32>(buffer, process_name, buffer_size)); + TRY(try_copy_name_from_user_into_fixed_string_buffer(buffer, process_name, buffer_size)); // NOTE: Reject empty and whitespace-only names, as they only confuse users. if (process_name.representable_view().is_whitespace()) return EINVAL;