summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-06-01 10:24:43 +1000
committerJeremy Huddleston <jeremyhu@apple.com>2011-06-03 12:12:38 -0400
commitfe4af41314a6537b3fcc66955ccb6895639738b1 (patch)
tree8d0f59acd13a91d7e5a8e78a3347ac10ca4b3658
parenta4725afa0e77e9fcf6570001dc0de23a7a9ee6cb (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> (cherry picked from commit d9bda34d0df576d155e1d682d5e2a382b8e1ffda)
-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 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)