summaryrefslogtreecommitdiff
path: root/src/XExtInt.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-13 10:05:33 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-13 11:35:37 +1000
commit753fb6afb13a7ce154cd24261eadb56c3f4243c5 (patch)
treecd7c9d0f79bc47746ff1de54664c4c993f7513cd /src/XExtInt.c
parent9d92265081830b700926b4a7b73975dd65217551 (diff)
Fix segfault in XIDeviceChangedEvent wire parsing.
Introduced by 225071e2e67fb65a0258397212f9826c9b25e078. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XExtInt.c')
-rw-r--r--src/XExtInt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index c58ef7e..b66c797 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1488,6 +1488,8 @@ wireToDeviceChangedEvent(xXIDeviceChangedEvent *in, XGenericEventCookie *cookie)
out->classes = (XIAnyClassInfo**)&out[1];
+ info.classes = out->classes;
+
copy_classes(&info, (xXIAnyInfo*)&in[1], in->num_classes);
return 1;