illogict pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=2026958af02584b9ee021692302a3f6ea65046f4
commit 2026958af02584b9ee021692302a3f6ea65046f4 Author: Chidambar Zinnoury <chidambar.zinno...@zefla.fr> Date: Fri May 9 18:13:55 2014 +0200 Bugfix: e xkbswitch: Fix parsing when there is no space in group name. --- src/modules/xkbswitch/e_mod_parse.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/xkbswitch/e_mod_parse.c b/src/modules/xkbswitch/e_mod_parse.c index fa21d35..5134144 100644 --- a/src/modules/xkbswitch/e_mod_parse.c +++ b/src/modules/xkbswitch/e_mod_parse.c @@ -211,7 +211,7 @@ parse_rules(void) { if (fgets(buf, sizeof(buf), f)) { - char *n, *p, *tmp, *name, *txt; + char *n, *p, *t, *tmp, *name, *txt; n = strchr(buf, '\n'); if (n) *n = '\0'; @@ -236,11 +236,12 @@ parse_rules(void) /* A hack to get it to parse right if * the group name contains a space */ - p = strstr(p, " "); - if (p) + t = strstr(p, " "); + if (t) { - while (p[0] == ' ') - ++p; + while (t[0] == ' ') + ++t; + p = t; } txt = evas_textblock_text_markup_to_utf8(NULL, p); --