trace: avoid page fault on client calling subjects

Fixes #3608
This commit is contained in:
Alexander Boettcher 2020-01-17 11:05:09 +01:00 committed by Christian Helmuth
parent a73ef9fc06
commit 3a9d450106
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ struct Genode::Trace::Session_client : Genode::Rpc_client<Genode::Trace::Session
{
size_t const num_subjects = min(call<Rpc_subjects>(), dst_len);
memcpy(dst, _argument_buffer.base, dst_len*sizeof(Subject_id));
memcpy(dst, _argument_buffer.base, num_subjects*sizeof(Subject_id));
return num_subjects;
}