diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-05-25 17:51:47 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2020-01-05 22:08:13 +0100 |
commit | e5a93849bd63cde75c447ac0df5ddc44b408e51c (patch) | |
tree | b376a1d9ce9d044a54804f0b41c00f28a42b81c4 /nx-X11/programs/Xserver/hw/nxagent/NXrender.c | |
parent | 5b6da1aa7722e8f8d20abcbe135a03ff69d6b5c4 (diff) | |
download | nx-libs-e5a93849bd63cde75c447ac0df5ddc44b408e51c.tar.gz nx-libs-e5a93849bd63cde75c447ac0df5ddc44b408e51c.tar.bz2 nx-libs-e5a93849bd63cde75c447ac0df5ddc44b408e51c.zip |
NXrender.c: modify code to match upstream as close as possible
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/NXrender.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXrender.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXrender.c b/nx-X11/programs/Xserver/hw/nxagent/NXrender.c index 1da3dc8bd..a7722fada 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXrender.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXrender.c @@ -236,9 +236,11 @@ ProcRenderQueryPictFormats (ClientPtr client) ndepth * sizeof (xPictDepth) + nvisual * sizeof (xPictVisual) + numSubpixel * sizeof (CARD32)); - reply = (xRenderQueryPictFormatsReply *) calloc (1, rlength); + reply = (xRenderQueryPictFormatsReply *) malloc (rlength); if (!reply) return BadAlloc; + memset(reply, 0, rlength); + reply->type = X_Reply; reply->sequenceNumber = client->sequence; reply->length = (rlength - sizeof(xGenericReply)) >> 2; |