diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-03-27 21:11:01 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2006-03-27 21:11:01 +0000 |
commit | 47dfc83937ed98e964716345cb4c8d817ae13e61 (patch) | |
tree | 445b3102c4fb84002d29dbd1dda1a55eaf5606b0 /src/maprules.c | |
parent | e61dfbf6c72369f83a833d3a5a04c306a6b289f8 (diff) |
Bug #3819: Fix serious botching of _XkbStrCaseCmp commit.XORG-7_0_99_901
Diffstat (limited to 'src/maprules.c')
-rw-r--r-- | src/maprules.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/maprules.c b/src/maprules.c index 2638071..7986896 100644 --- a/src/maprules.c +++ b/src/maprules.c @@ -1108,18 +1108,18 @@ int len,headingtype,extra_ndx = 0; tok = strtok(&(line.line[1]), " \t"); if (strcmp(tok,"model") == 0) headingtype = HEAD_MODEL; - else if (strcmp(tolower(tok),"layout") == 0) + else if (_XkbStrCaseCmp(tok,"layout") == 0) headingtype = HEAD_LAYOUT; - else if (strcmp(tolower(tok),"variant") == 0) + else if (_XkbStrCaseCmp(tok,"variant") == 0) headingtype = HEAD_VARIANT; - else if (strcmp(tolower(tok),"option") == 0) + else if (_XkbStrCaseCmp(tok,"option") == 0) headingtype = HEAD_OPTION; else { int i; headingtype = HEAD_EXTRA; extra_ndx= -1; for (i=0;(i<rules->num_extra)&&(extra_ndx<0);i++) { - if (_XkbStrCaseCmp(tolower(tok),rules->extra_names[i])) + if (_XkbStrCaseCmp(tok,rules->extra_names[i])) extra_ndx= i; } if (extra_ndx<0) { |