summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2011-09-25 12:32:08 -0400
committerMatt Turner <mattst88@gmail.com>2011-09-25 12:32:08 -0400
commit89e9a38f0ccda9b9ee973f5cd5e57cad73eb7421 (patch)
treeec5d0732dd5d0ee071038da171d7b168500ae371
parent94f23a5672ebeac61cc32e34882d637aa0c7f2f4 (diff)
Fix wrong-sized swaps
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/sis_driver.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sis_driver.c b/src/sis_driver.c
index d95b5f1..f1822ea 100644
--- a/src/sis_driver.c
+++ b/src/sis_driver.c
@@ -2159,7 +2159,6 @@ SiSProcXineramaGetState(ClientPtr client)
if(client->swapped) {
swaps (&rep.sequenceNumber, n);
swapl (&rep.length, n);
- swaps (&rep.state, n);
}
WriteToClient(client, sizeof(xPanoramiXGetStateReply), (char *)&rep);
return client->noClientException;
@@ -2184,7 +2183,6 @@ SiSProcXineramaGetScreenCount(ClientPtr client)
if(client->swapped) {
swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n);
- swaps(&rep.ScreenCount, n);
}
WriteToClient(client, sizeof(xPanoramiXGetScreenCountReply), (char *)&rep);
return client->noClientException;
@@ -2210,8 +2208,8 @@ SiSProcXineramaGetScreenSize(ClientPtr client)
if(client->swapped) {
swaps(&rep.sequenceNumber, n);
swapl(&rep.length, n);
- swaps(&rep.width, n);
- swaps(&rep.height, n);
+ swapl(&rep.width, n);
+ swapl(&rep.height, n);
}
WriteToClient(client, sizeof(xPanoramiXGetScreenSizeReply), (char *)&rep);
return client->noClientException;