summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/select.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/select.cpp')
-rw-r--r--Kernel/Syscalls/select.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/select.cpp b/Kernel/Syscalls/select.cpp
index f38946f211..e0d7bb7411 100644
--- a/Kernel/Syscalls/select.cpp
+++ b/Kernel/Syscalls/select.cpp
@@ -150,7 +150,7 @@ KResultOr<int> Process::sys$poll(Userspace<const Syscall::SC_poll_params*> user_
if (params.sigmask && !copy_from_user(&sigmask, params.sigmask))
return EFAULT;
- Vector<pollfd> fds_copy;
+ Vector<pollfd, FD_SETSIZE> fds_copy;
if (params.nfds > 0) {
Checked nfds_checked = sizeof(pollfd);
nfds_checked *= params.nfds;