Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > e265b08b6bebf8514a189c80db57a2d3 > files > 16

x11-server-1.3.0.0-25.1mdv2008.0.src.rpm

From ea879fa53525ee3949423a2942f1537497184128 Mon Sep 17 00:00:00 2001
From: Gustavo Pichorim Boiko <boiko@mandriva.com>
Date: Thu, 2 Aug 2007 18:09:52 -0300
Subject: [PATCH] [PATCH] Allocate the right number of entries for saving crtcs

---
 hw/xfree86/modes/xf86RandR12.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/modes/xf86RandR12.c b/hw/xfree86/modes/xf86RandR12.c
index 7acbda3..74f7b7a 100644
--- a/hw/xfree86/modes/xf86RandR12.c
+++ b/hw/xfree86/modes/xf86RandR12.c
@@ -715,7 +715,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))
-- 
1.5.2.4