aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glamor/glamor_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glamor/glamor_utils.c')
-rw-r--r--xorg-server/glamor/glamor_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/glamor/glamor_utils.c b/xorg-server/glamor/glamor_utils.c
index f06896096..d3e6fd3ff 100644
--- a/xorg-server/glamor/glamor_utils.c
+++ b/xorg-server/glamor/glamor_utils.c
@@ -31,7 +31,7 @@ glamor_solid_boxes(PixmapPtr pixmap,
xRectangle *rect;
int n;
- rect = malloc(nbox * sizeof (xRectangle));
+ rect = xallocarray(nbox, sizeof(xRectangle));
if (!rect)
return;
for (n = 0; n < nbox; n++) {