Skip to content
Snippets Groups Projects
Verified Commit 33d0d670 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix size of event: read in redox epoll implementation

parent 1ef79540
No related branches found
No related tags found
No related merge requests found
...@@ -97,7 +97,10 @@ impl PalEpoll for Sys { ...@@ -97,7 +97,10 @@ impl PalEpoll for Sys {
}; };
let bytes_read = Sys::read(epfd, unsafe { let bytes_read = Sys::read(epfd, unsafe {
slice::from_raw_parts_mut(events as *mut u8, maxevents as usize) slice::from_raw_parts_mut(
events as *mut u8,
maxevents as usize * mem::size_of::<syscall::Event>(),
)
}); });
if bytes_read == -1 { if bytes_read == -1 {
return -1; return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment