diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:12:42 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:58:29 -0700 |
commit | cdf5bcd420e5bcf4a4a24a275d3133a4e16ce41e (patch) | |
tree | ebc4c13ebd7471cbfa7425c190303793ea5b7ff9 /randr | |
parent | ef0f701c9245b0373eb0c7a84dd804af4738bb29 (diff) |
Use calloc to zero fill buffers being allocated for replies & events
Ensures padding bytes are zero-filled
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'randr')
-rw-r--r-- | randr/rrcrtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index ee29f37a3..c91c7fdf9 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -1526,7 +1526,7 @@ ProcRRGetCrtcTransform(ClientPtr client) nextra = (transform_filter_length(pending) + transform_filter_length(current)); - reply = malloc(sizeof(xRRGetCrtcTransformReply) + nextra); + reply = calloc(1, sizeof(xRRGetCrtcTransformReply) + nextra); if (!reply) return BadAlloc; |