summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGustavo Pichorim Boiko <boiko@mandriva.com>2007-08-02 18:09:52 -0300
committerKeith Packard <keithp@koto.keithp.com>2007-08-08 12:31:11 -0700
commit2926cf1da7e4ed63573bfaecdd7e19beb3057d9b (patch)
tree90d28dbbcc120f42e378ec326f92627579eee4b4 /hw
parentb2dcfbca2441ca8c561f86a78a76ab59ecbb40e4 (diff)
[PATCH] Allocate the right number of entries for saving crtcs
Diffstat (limited to 'hw')
-rw-r--r--hw/xfree86/modes/xf86RandR12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
index 889be6f27..9d74e5377 100644
--- a/hw/xfree86/modes/xf86RandR12.c
+++ b/hw/xfree86/modes/xf86RandR12.c
@@ -716,7 +716,7 @@ xf86RandR12CrtcSet (ScreenPtr pScreen,
xf86CrtcPtr *save_crtcs;
Bool save_enabled = crtc->enabled;
- save_crtcs = ALLOCATE_LOCAL(config->num_crtc * sizeof (xf86CrtcPtr));
+ save_crtcs = ALLOCATE_LOCAL(config->num_output * sizeof (xf86CrtcPtr));
if ((randr_mode != NULL) != crtc->enabled)
changed = TRUE;
else if (randr_mode && !xf86RandRModeMatches (randr_mode, &crtc->mode))