Upstreaming from https://bugs.meego.com/show_bug.cgi?id=16212 . Still applies to current git master codebase in http://cgit.freedesktop.org/xorg/xserver/tree/test/xi2/protocol-common.c 122 void init_window(WindowPtr window, WindowPtr parent, int id) 123 { 124 memset(window, 0, sizeof(window)); WindowPtr is a parent, you want to use sizeof *window or sizeof Window...
lib/xi is for the client-side libXi, not the code in the Xserver, reassigning.
http://patchwork.freedesktop.org/patch/5657/
commit 62f1bf96e1ea27e1eff137cb9333f3dd3b014dd0 Author: Peter Hutterer <peter.hutterer@who-t.net> Date: Wed Jun 1 10:22:44 2011 +1000 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>
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.