Re: [PATCH 04/11] let compiler manage the copy in a more typesafe way

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2016-05-12 at 15:45 -0500, Jonathon Jongsma wrote:
> From: Frediano Ziglio <fziglio@xxxxxxxxxx>
> 
> Do not use memcpy but just copy the data
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
Acked-by: Pavel Grunt <pgrunt@xxxxxxxxxx>
> ---
>  server/red-channel.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/red-channel.c b/server/red-channel.c
> index 66aed41..c88828c 100644
> --- a/server/red-channel.c
> +++ b/server/red-channel.c
> @@ -1049,7 +1049,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;
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]