projects
/
platform
/
upstream
/
libxkbcommon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix signed vs. unsigned confusion in name sanitisation
[platform/upstream/libxkbcommon.git]
/
src
/
keymap-priv.c
diff --git
a/src/keymap-priv.c
b/src/keymap-priv.c
index
08945ca
..
fffb2fd
100644
(file)
--- 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++;
}