Commit d15c24c8 authored by Niclas Zeising's avatar Niclas Zeising Committed by Alan Coopersmith

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=248549Signed-off-by: Niclas Zeising's avatarNiclas Zeising <zeising@daemonic.se>
parent 6dd618e5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment