diff options
Diffstat (limited to 'Xext/shape.c')
-rw-r--r-- | Xext/shape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xext/shape.c b/Xext/shape.c index 5977296e5..a5ae45578 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -1069,7 +1069,7 @@ ProcShapeGetRectangles (ClientPtr client) } rep.type = X_Reply; rep.sequenceNumber = client->sequence; - rep.length = (nrects * sizeof (xRectangle)) >> 2; + rep.length = bytes_to_int32(nrects * sizeof (xRectangle)); rep.ordering = YXBanded; rep.nrects = nrects; if (client->swapped) { |