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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user