mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
XKB: Sanitise vmods in actions
Turn vmods from two unsigned chars into one int. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4f3078df2a
commit
61c508fa78
5 changed files with 12 additions and 21 deletions
|
|
@ -678,7 +678,7 @@ XkbModAction * act;
|
|||
unsigned tmp;
|
||||
|
||||
act= &action->mods;
|
||||
tmp= XkbModActionVMods(act);
|
||||
tmp= act->vmods;
|
||||
TryCopyStr(buf,"modifiers=",sz);
|
||||
if (act->flags&XkbSA_UseModMapMods)
|
||||
TryCopyStr(buf,"modMapMods",sz);
|
||||
|
|
@ -818,7 +818,7 @@ char tbuf[64];
|
|||
}
|
||||
else {
|
||||
unsigned tmp;
|
||||
tmp= XkbModActionVMods(act);
|
||||
tmp= act->vmods;
|
||||
TryCopyStr(buf,"modifiers=",sz);
|
||||
if (act->flags&XkbSA_UseModMapMods)
|
||||
TryCopyStr(buf,"modMapMods",sz);
|
||||
|
|
|
|||
Loading…
Reference in a new issue