aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/dmx/dmxcursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/dmx/dmxcursor.c')
-rw-r--r--xorg-server/hw/dmx/dmxcursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/hw/dmx/dmxcursor.c b/xorg-server/hw/dmx/dmxcursor.c
index 70f2bc4b4..0ef800e39 100644
--- a/xorg-server/hw/dmx/dmxcursor.c
+++ b/xorg-server/hw/dmx/dmxcursor.c
@@ -203,7 +203,7 @@ miPointerScreenFuncRec dmxPointerCursorFuncs = {
static int *
dmxSLCreate(void)
{
- int *list = malloc(dmxNumScreens * sizeof(*list));
+ int *list = xallocarray(dmxNumScreens, sizeof(*list));
int i;
for (i = 0; i < dmxNumScreens; i++)