mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 19:18:10 +02:00
xkb: set num_keys when filling in keys in _XkbReadGetNamesReply()
Fixes: #160 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
487e9489d1
commit
0beb0cf46a
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ _XkbReadGetNamesReply(Display *dpy,
|
|||
(char *) &names->keys[rep->firstKey],
|
||||
rep->nKeys * XkbKeyNameLength))
|
||||
goto BAILOUT;
|
||||
names->num_keys = rep->nKeys;
|
||||
}
|
||||
else
|
||||
_XkbSkipReadBufferData(&buf, rep->nKeys * XkbKeyNameLength);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue