[Xfce4-commits] <xfce4-xkb-plugin:4.10_panel_support> Fix crash in xkb_util_normalize_group_name

Igor Slepchin noreply at xfce.org
Sat Jun 8 00:58:06 CEST 2013


Updating branch refs/heads/4.10_panel_support
         to 9995998bcf8b07e2ad5c15eb6500f40b970daed5 (commit)
       from 5efe92e830c77fbe97fea6c11e50827599b3f43a (commit)

commit 9995998bcf8b07e2ad5c15eb6500f40b970daed5
Author: Igor Slepchin <igor.slepchin at gmail.com>
Date:   Fri Jun 7 17:50:11 2013 -0400

    Fix crash in xkb_util_normalize_group_name
    
    Correctly compute offset of the first separator char in group name.

 panel-plugin/xkb-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/xkb-util.c b/panel-plugin/xkb-util.c
index 324928f..1e64cfc 100644
--- a/panel-plugin/xkb-util.c
+++ b/panel-plugin/xkb-util.c
@@ -81,7 +81,7 @@ xkb_util_normalize_group_name (const gchar* group_name)
     {
         if (!((*c >= 'a' && *c <= 'z') || (*c >= 'A' && *c <= 'Z')))
         {
-            index_of_na = group_name - c;
+            index_of_na = c - group_name;
             break;
         }
     }


More information about the Xfce4-commits mailing list