From 2ba0ac202ad64eb4a555715980ba538de19c9fd7 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 20 Oct 2011 22:23:07 -0700 Subject: [PATCH] XQuartz: appledri: Set the correct reply length for XAppleDRICreatePixmap http://xquartz.macosforge.org/trac/ticket/508 Signed-off-by: Jeremy Huddleston Reviewed-by: Jamey Sharp --- hw/xquartz/xpr/appledri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;