diff options
Diffstat (limited to 'mi/miexpose.c')
-rw-r--r-- | mi/miexpose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c index fc4dbc071..c4118f16a 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -535,7 +535,7 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what) gcmask |= GCFillStyle | GCTile | GCTileStipXOrigin | GCTileStipYOrigin; } - prect = malloc(RegionNumRects(prgn) * sizeof(xRectangle)); + prect = xallocarray(RegionNumRects(prgn), sizeof(xRectangle)); if (!prect) return; |