diff options
Diffstat (limited to 'xserver/hw/dmx/dmxcursor.c')
-rw-r--r-- | xserver/hw/dmx/dmxcursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/hw/dmx/dmxcursor.c b/xserver/hw/dmx/dmxcursor.c index 70f2bc4b4..0ef800e39 100644 --- a/xserver/hw/dmx/dmxcursor.c +++ b/xserver/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++) |