mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +00:00
Convert top level extensions to new *allocarray functions
v2: remove now useless parentheses Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
b9e665c8b2
commit
1c56ac63c0
34 changed files with 111 additions and 122 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue