diff options
Diffstat (limited to 'xorg-server/Xi/getdctl.c')
-rw-r--r-- | xorg-server/Xi/getdctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/Xi/getdctl.c b/xorg-server/Xi/getdctl.c index 4d66a4dfc..39cde5174 100644 --- a/xorg-server/Xi/getdctl.c +++ b/xorg-server/Xi/getdctl.c @@ -158,7 +158,7 @@ SRepXGetDeviceControl(ClientPtr client, int size, xGetDeviceControlReply * rep) { swaps(&rep->sequenceNumber); swapl(&rep->length); - WriteToClient(client, size, (char *) rep); + WriteToClient(client, size, rep); } /*********************************************************************** @@ -182,10 +182,11 @@ ProcXGetDeviceControl(ClientPtr client) if (rc != Success) return rc; + rep.repType = X_Reply; rep.RepType = X_GetDeviceControl; - rep.length = 0; rep.sequenceNumber = client->sequence; + rep.length = 0; switch (stuff->control) { case DEVICE_RESOLUTION: |