diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-12-19 18:18:10 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-12-19 18:18:10 +1030 |
commit | d0308b64655360517d83e07e866d103c3f2b389d (patch) | |
tree | 1a89c5cb09d85010e022ddecdbe1158cf0f3d8f1 /Xi/getdctl.c | |
parent | 66b00029e587cec628d0041179a301e888277f8e (diff) |
Xi: specify correct struct when calculating size of GetDeviceControl reply.
This doesn't change much, as the struct previously given has the same size as
the ones now anyway. Still, we should be pendantic.
Thanks to Simon Thum for reporting.
Diffstat (limited to 'Xi/getdctl.c')
-rw-r--r-- | Xi/getdctl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xi/getdctl.c b/Xi/getdctl.c index 6e1e3ef58..c979959e2 100644 --- a/Xi/getdctl.c +++ b/Xi/getdctl.c @@ -265,19 +265,19 @@ ProcXGetDeviceControl(ClientPtr client) if (!dev->absolute) return BadMatch; - total_length = sizeof(xDeviceAbsCalibCtl); + total_length = sizeof(xDeviceAbsCalibState); break; case DEVICE_ABS_AREA: if (!dev->absolute) return BadMatch; - total_length = sizeof(xDeviceAbsAreaCtl); + total_length = sizeof(xDeviceAbsAreaState); break; case DEVICE_CORE: - total_length = sizeof(xDeviceCoreCtl); + total_length = sizeof(xDeviceCoreState); break; case DEVICE_ENABLE: - total_length = sizeof(xDeviceEnableCtl); + total_length = sizeof(xDeviceEnableState); break; default: return BadValue; |