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>
This commit is contained in:
Jeremy Huddleston 2011-10-20 22:23:07 -07:00
parent e4f257748b
commit 2ba0ac202a

View File

@ -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;