[PATCH] test: fix memset size for WindowRec (#37801)

Jeremy Huddleston jeremyhu at apple.com
Tue May 31 18:08:38 PDT 2011


Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On May 31, 2011, at 17:24, Peter Hutterer wrote:

> X.Org Bug 37801 <http://bugs.freedesktop.org/show_bug.cgi?id=37801>
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> test/xi2/protocol-common.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c
> index 6ffc697..4234533 100644
> --- a/test/xi2/protocol-common.c
> +++ b/test/xi2/protocol-common.c
> @@ -121,7 +121,7 @@ ClientRec init_client(int len, void *data)
> 
> void init_window(WindowPtr window, WindowPtr parent, int id)
> {
> -    memset(window, 0, sizeof(window));
> +    memset(window, 0, sizeof(*window));
> 
>     window->drawable.id = id;
>     if (parent)
> -- 
> 1.7.5.1
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list