summaryrefslogtreecommitdiff
path: root/randr/rrtransform.c
diff options
context:
space:
mode:
Diffstat (limited to 'randr/rrtransform.c')
-rw-r--r--randr/rrtransform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrtransform.c b/randr/rrtransform.c
index c8a27498f..6137f8587 100644
--- a/randr/rrtransform.c
+++ b/randr/rrtransform.c
@@ -70,7 +70,7 @@ RRTransformSetFilter(RRTransformPtr dst,
xFixed *new_params;
if (nparams) {
- new_params = malloc(nparams * sizeof(xFixed));
+ new_params = xallocarray(nparams, sizeof(xFixed));
if (!new_params)
return FALSE;
memcpy(new_params, params, nparams * sizeof(xFixed));