From 36484e600c803b214a12f60c94fe81e4dc78980f Mon Sep 17 00:00:00 2001 From: Christian Linhart Date: Mon, 18 Aug 2014 16:41:20 +0200 Subject: [PATCH] xinput: struct XIDeviceInfo.name: cleanup of padding Previuosly, the padding of list "name" has been done by faking another list-length. Correct this by using the real list-length, and by adding a 4-byte align-pad after the list. This yields the same total length of the struct, and uses the correct length of the list "name". spec: http://cgit.freedesktop.org/xorg/proto/inputproto/tree/specs/XI2proto.txt#n768 code: http://cgit.freedesktop.org/xorg/lib/libXi/tree/src/XIQueryDevice.c#n92 http://cgit.freedesktop.org/xorg/xserver/tree/Xi/xiquerydevice.c#n477 --- src/xinput.xml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/xinput.xml b/src/xinput.xml index 3cceee5..0c036bd 100644 --- a/src/xinput.xml +++ b/src/xinput.xml @@ -1498,19 +1498,9 @@ authorization from the authors. - - - - - name_len - 3 - - 4 - - 4 - + name_len + num_classes -- 2.34.1