mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Kernel: Remove FixedStringBuffer template argument in prctl.cpp
This template argument can be inferred automatically and is not needed.
This commit is contained in:
parent
72231b405a
commit
1458849850
|
@ -54,7 +54,7 @@ ErrorOr<FlatPtr> Process::sys$prctl(int option, FlatPtr arg1, FlatPtr arg2)
|
|||
Userspace<char const*> buffer = arg1;
|
||||
size_t buffer_size = static_cast<size_t>(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;
|
||||
|
|
Loading…
Reference in a new issue