mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 17:07:15 +00:00
let compiler manage the copy in a more typesafe way
Do not use memcpy but just copy the data Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
a11b785f19
commit
c037c779df
@ -1034,7 +1034,7 @@ RedChannel *red_channel_create(int size,
|
||||
channel->refs = 1;
|
||||
channel->handle_acks = handle_acks;
|
||||
channel->migration_flags = migration_flags;
|
||||
memcpy(&channel->channel_cbs, channel_cbs, sizeof(ChannelCbs));
|
||||
channel->channel_cbs = *channel_cbs;
|
||||
|
||||
channel->reds = reds;
|
||||
channel->core = core;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user