summaryrefslogtreecommitdiff
path: root/lib/libX11
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-08-20 19:12:49 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-08-20 19:12:49 +0000
commit2180bd79ccbbe7e5a00b8e0374322c7f3e44b8a3 (patch)
tree4703d077fc9e38c76aaef450df0a01edcbce73c5 /lib/libX11
parent116d47919c6cd75829cc6613ee406c9439541f87 (diff)
Fix a bug where some input clients can't connect to the input server.
FreeBSD bugzilla reference: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248549
Diffstat (limited to 'lib/libX11')
-rw-r--r--lib/libX11/modules/im/ximcp/imRmAttr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libX11/modules/im/ximcp/imRmAttr.c b/lib/libX11/modules/im/ximcp/imRmAttr.c
index 919c55647..709e64ab5 100644
--- a/lib/libX11/modules/im/ximcp/imRmAttr.c
+++ b/lib/libX11/modules/im/ximcp/imRmAttr.c
@@ -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);