mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-05 13:28:00 +02:00
Fix input clients connecting to server
Fix a bug where some input clients can't connect to the input server. This fixes #117. FreeBSD bugzilla reference: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248549 Signed-off-by: Niclas Zeising <zeising@daemonic.se>
This commit is contained in:
parent
6dd618e5ea
commit
d15c24c8b4
1 changed files with 1 additions and 1 deletions
|
|
@ -1407,7 +1407,7 @@ _XimCountNumberOfAttr(
|
|||
*names_len = 0;
|
||||
while (total > min_len) {
|
||||
len = attr[2];
|
||||
if (len >= (total - min_len)) {
|
||||
if (len > (total - min_len)) {
|
||||
return 0;
|
||||
}
|
||||
*names_len += (len + 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue