glx: fix length of GLXGetFBConfigsSGIX
authorJulien Cristau <jcristau@debian.org>
Wed, 26 Jan 2011 12:03:17 +0000 (04:03 -0800)
committerBrian Paul <brianp@vmware.com>
Mon, 31 Jan 2011 16:28:55 +0000 (09:28 -0700)
The extra length is the size of the request *minus* the size of the
VendorPrivate header, not the addition.

NOTE: This is a candidate for the 7.9 and 7.10 branches

Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/glx/glxext.c

index c5e9d0510b68ff61aaafdbe5af4fb912f7df0932..c75c9bfd32918f010c535651e1eb3b54d53ff8cf 100644 (file)
@@ -688,7 +688,7 @@ static GLboolean
    }
    else if (strstr(psc->serverGLXexts, "GLX_SGIX_fbconfig") != NULL) {
       GetReqExtra(GLXVendorPrivateWithReply,
-                  sz_xGLXGetFBConfigsSGIXReq +
+                  sz_xGLXGetFBConfigsSGIXReq -
                   sz_xGLXVendorPrivateWithReplyReq, vpreq);
       sgi_req = (xGLXGetFBConfigsSGIXReq *) vpreq;
       sgi_req->reqType = priv->majorOpcode;