diff options
Diffstat (limited to 'xorg-server/mi/miglblt.c')
-rw-r--r-- | xorg-server/mi/miglblt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/mi/miglblt.c b/xorg-server/mi/miglblt.c index 0183e998b..e9d3a1af0 100644 --- a/xorg-server/mi/miglblt.c +++ b/xorg-server/mi/miglblt.c @@ -131,7 +131,7 @@ miPolyGlyphBlt(DrawablePtr pDrawable, GC * pGC, int x, int y, unsigned int nglyp gcvals); nbyLine = BitmapBytePad(width); - pbits = malloc(height * nbyLine); + pbits = xallocarray(height, nbyLine); if (!pbits) { (*pDrawable->pScreen->DestroyPixmap) (pPixmap); FreeScratchGC(pGCtmp); |