[Xfce4-commits] <xfce4-xkb-plugin:master> Fix crash in xkb_util_normalize_group_name
Igor Slepchin
noreply at xfce.org
Mon Jul 8 20:46:01 CEST 2013
Updating branch refs/heads/master
to afc0c84257d33e712b06cc3e5de7b0fe63480ebd (commit)
from 215e99df0124d4045f97f2f4b2aa637d77b811a1 (commit)
commit afc0c84257d33e712b06cc3e5de7b0fe63480ebd
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.
(cherry picked from commit 9995998bcf8b07e2ad5c15eb6500f40b970daed5)
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