diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-01 10:22:44 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-03 14:43:05 +1000 |
commit | 62f1bf96e1ea27e1eff137cb9333f3dd3b014dd0 (patch) | |
tree | ee6dd0a0817bc5400d30858eff0d6c88c051d214 /test | |
parent | f94898928dfaf8df648bc3eea7d304826b7ac1b8 (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>
Diffstat (limited to 'test')
-rw-r--r-- | 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 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) |