summaryrefslogtreecommitdiff
path: root/test/xi2
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-06-01 10:24:43 +1000
committerKeith Packard <keithp@keithp.com>2011-06-02 23:21:26 -0700
commitd9bda34d0df576d155e1d682d5e2a382b8e1ffda (patch)
treeb1f59a7bce04b857a0d1ce08bf9652f57e9ea336 /test/xi2
parent48b4b778f61daaa161483b510ab520f3fcb84925 (diff)
test: fix memset size for WindowRec (#37801)
X.Org Bug 37801 <http://bugs.freedesktop.org/show_bug.cgi?id=37801> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Cyril Brulebois <kibi@debian.org> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'test/xi2')
-rw-r--r--test/xi2/protocol-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c
index 6ffc69721..423453358 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)