diff --git a/randr/rrproperty.c b/randr/rrproperty.c index a47f30671..13e848340 100644 --- a/randr/rrproperty.c +++ b/randr/rrproperty.c @@ -325,9 +325,9 @@ ProcRRListOutputProperties (ClientPtr client) return(BadAlloc); rep.type = X_Reply; - rep.nProperties = numProps; rep.length = (numProps * sizeof(Atom)) >> 2; rep.sequenceNumber = client->sequence; + rep.nAtoms = numProps; if (client->swapped) { int n;