kernel/events: Fix incorrect sizeof in user_memcpy.

The field has 4 bytes of padding after it on 64-bit architectures,
so in the end this doesn't make much difference.
This commit is contained in:
Augustin Cavalier
2025-07-12 13:16:09 -04:00
parent 9fce28cfb3
commit 6bb82d2942
+1 -1
View File
@@ -674,7 +674,7 @@ _user_event_queue_select(int queue, event_wait_info* userInfos, int numInfos)
}
if (error != B_OK) {
user_memcpy(&userInfos[i].events, &error, sizeof(&userInfos[i].events));
user_memcpy(&userInfos[i].events, &error, sizeof(userInfos[i].events));
result = B_ERROR;
}
}