diff options
Diffstat (limited to 'xserver/hw/xfree86/modes/xf86DiDGA.c')
-rw-r--r-- | xserver/hw/xfree86/modes/xf86DiDGA.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/hw/xfree86/modes/xf86DiDGA.c b/xserver/hw/xfree86/modes/xf86DiDGA.c index 3f1a3309f..645727441 100644 --- a/xserver/hw/xfree86/modes/xf86DiDGA.c +++ b/xserver/hw/xfree86/modes/xf86DiDGA.c @@ -60,7 +60,7 @@ xf86_dga_get_modes(ScreenPtr pScreen) if (!num) return FALSE; - modes = malloc(num * sizeof(DGAModeRec)); + modes = xallocarray(num, sizeof(DGAModeRec)); if (!modes) return FALSE; |