aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/miext/shadow/shalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/miext/shadow/shalloc.c')
-rw-r--r--xorg-server/miext/shadow/shalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/miext/shadow/shalloc.c b/xorg-server/miext/shadow/shalloc.c
index e555135b9..6a79085c4 100644
--- a/xorg-server/miext/shadow/shalloc.c
+++ b/xorg-server/miext/shadow/shalloc.c
@@ -44,6 +44,6 @@ shadowAlloc(int width, int height, int bpp)
/* Cant use PixmapBytePad -- the structure is probably not initialized yet */
stride = BitmapBytePad(width * bpp);
- fb = malloc(stride * height);
+ fb = xallocarray(stride, height);
return fb;
}