diff options
Diffstat (limited to 'xfixes')
-rw-r--r-- | xfixes/region.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |