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:
Alan Coopersmith 2022-07-10 11:42:19 -07:00
parent 487e9489d1
commit 0beb0cf46a

View file

@ -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);