From: Christian Linhart Date: Mon, 18 Aug 2014 14:41:20 +0000 (+0200) Subject: xinput: struct XIDeviceInfo.name: cleanup of padding X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?p=free-sw%2Fxcb%2Fproto;a=commitdiff_plain;h=36484e600c803b214a12f60c94fe81e4dc78980f 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 --- 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