xinput: struct XIDeviceInfo.name: cleanup of padding
authorChristian Linhart <chris@demorecorder.com>
Mon, 18 Aug 2014 14:41:20 +0000 (16:41 +0200)
committerChristian Linhart <chris@demorecorder.com>
Mon, 25 Aug 2014 11:42:56 +0000 (13:42 +0200)
commit36484e600c803b214a12f60c94fe81e4dc78980f
treea9f0f327fe9b3dd0b58f65beba6c627f149bd98e
parenta2374e10396cab18bd5ccf9b4cc0ee27f87a0c00
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