[PATCH] Allocate the right number of entries for saving crtcs
This commit is contained in:
parent
b2dcfbca24
commit
2926cf1da7
|
@ -716,7 +716,7 @@ xf86RandR12CrtcSet (ScreenPtr pScreen,
|
||||||
xf86CrtcPtr *save_crtcs;
|
xf86CrtcPtr *save_crtcs;
|
||||||
Bool save_enabled = crtc->enabled;
|
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)
|
if ((randr_mode != NULL) != crtc->enabled)
|
||||||
changed = TRUE;
|
changed = TRUE;
|
||||||
else if (randr_mode && !xf86RandRModeMatches (randr_mode, &crtc->mode))
|
else if (randr_mode && !xf86RandRModeMatches (randr_mode, &crtc->mode))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user