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 --- xfixes/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfixes') diff --git a/xfixes/region.c b/xfixes/region.c index 4492f1267..dd74d7f7e 100644 --- a/xfixes/region.c +++ b/xfixes/region.c @@ -777,7 +777,7 @@ ProcXFixesExpandRegion(ClientPtr client) nBoxes = RegionNumRects(pSource); pSrc = RegionRects(pSource); if (nBoxes) { - pTmp = malloc(nBoxes * sizeof(BoxRec)); + pTmp = xallocarray(nBoxes, sizeof(BoxRec)); if (!pTmp) return BadAlloc; for (i = 0; i < nBoxes; i++) { -- cgit v1.2.3