summaryrefslogtreecommitdiff
path: root/src/keymap-priv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap-priv.c')
-rw-r--r--src/keymap-priv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keymap-priv.c b/src/keymap-priv.c
index 08945ca..fffb2fd 100644
--- a/src/keymap-priv.c
+++ b/src/keymap-priv.c
@@ -118,7 +118,8 @@ XkbEscapeMapName(char *name)
return;
while (*name) {
- if (!(legal[*name / 8] & (1 << (*name % 8))))
+ unsigned char c = *name;
+ if (!(legal[c / 8] & (1 << (c % 8))))
*name = '_';
name++;
}