diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-20 22:23:07 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-10-21 10:29:56 -0700 |
commit | 2ba0ac202ad64eb4a555715980ba538de19c9fd7 (patch) | |
tree | 1473006c07929f903958ec12b204ddcaa3110457 /hw/xquartz/xpr | |
parent | e4f257748b51d041275a64b8be408729ea05fbb5 (diff) |
XQuartz: appledri: Set the correct reply length for XAppleDRICreatePixmap
http://xquartz.macosforge.org/trac/ticket/508
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'hw/xquartz/xpr')
-rw-r--r-- | hw/xquartz/xpr/appledri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/xpr/appledri.c b/hw/xquartz/xpr/appledri.c index 1304d5a43..f6bc32ba7 100644 --- a/hw/xquartz/xpr/appledri.c +++ b/hw/xquartz/xpr/appledri.c @@ -279,7 +279,7 @@ ProcAppleDRICreatePixmap(ClientPtr client) /* No need for swapping, because this only runs if LocalClient is true. */ rep.type = X_Reply; - rep.length = sizeof(rep) + rep.stringLength; + rep.length = bytes_to_int32(rep.stringLength); rep.sequenceNumber = client->sequence; rep.width = width; rep.height = height; |