[Spice-devel] [PATCH] server/red_dispatcher: fix memset params
Alon Levy
alevy at redhat.com
Tue Aug 2 01:26:42 PDT 2011
On Tue, Aug 02, 2011 at 11:05:11AM +0300, Uri Lublin wrote:
> Replace wrong memset(ptr, size, 0)
> With memset(ptr, 0, size)
ACK. Thanks for catching this.
> ---
> server/red_dispatcher.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c
> index 8f4a8a8..f86da81 100644
> --- a/server/red_dispatcher.c
> +++ b/server/red_dispatcher.c
> @@ -390,7 +390,7 @@ static void red_dispatcher_create_primary_surface_complete(RedDispatcher *dispat
> dispatcher->primary_active = TRUE;
>
> update_client_mouse_allowed();
> - memset(&dispatcher->surface_create, sizeof(QXLDevSurfaceCreate), 0);
> + memset(&dispatcher->surface_create, 0, sizeof(QXLDevSurfaceCreate));
> }
>
> static void
> --
> 1.7.6
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list