[Xfce4-commits] <xfce4-settings:master> Fix inclusion of several displays on a single crtc

Jérôme Guelfucci noreply at xfce.org
Sun Sep 5 23:02:01 CEST 2010


Updating branch refs/heads/master
         to 9059bd11b95f2e22ea280aab7a9a54838462b821 (commit)
       from 51e89db751b482c818f0e0d483ef5b409899222c (commit)

commit 9059bd11b95f2e22ea280aab7a9a54838462b821
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Sun Sep 5 20:28:31 2010 +0200

    Fix inclusion of several displays on a single crtc
    
    Array index was incremented too much, so the array passed to xrandr was
    incorrect (the added displays were written beyond the array limit).

 xfce4-settings-helper/displays.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index dc65628..6036c9b 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -489,7 +489,7 @@ xfce_displays_helper_set_outputs (XfceRRCrtc   *crtc,
         output->pending->outputs[n] = crtc->outputs[n];
     /* add the current one if needed */
     if (!found)
-        output->pending->outputs[++n] = output->id;
+        output->pending->outputs[n] = output->id;
 }
 
 



More information about the Xfce4-commits mailing list