From fe4af41314a6537b3fcc66955ccb6895639738b1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 1 Jun 2011 10:24:43 +1000 Subject: test: fix memset size for WindowRec (#37801) X.Org Bug 37801 Signed-off-by: Peter Hutterer Reviewed-by: Jeremy Huddleston Reviewed-by: Daniel Stone Reviewed-by: Cyril Brulebois Signed-off-by: Keith Packard (cherry picked from commit d9bda34d0df576d155e1d682d5e2a382b8e1ffda) --- test/xi2/protocol-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c index 10d82a501..cd9e81a65 100644 --- a/test/xi2/protocol-common.c +++ b/test/xi2/protocol-common.c @@ -122,7 +122,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) -- cgit v1.2.3