From 1c56ac63c040280498c4a9d67b48c35b60070821 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 21 Mar 2015 13:42:12 -0700 Subject: Convert top level extensions to new *allocarray functions v2: remove now useless parentheses Signed-off-by: Alan Coopersmith Reviewed-by: Matt Turner --- randr/rrtransform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'randr/rrtransform.c') 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)); -- cgit v1.2.3