diff options
Diffstat (limited to 'lib/libX11')
-rw-r--r-- | lib/libX11/modules/im/ximcp/imRmAttr.c | 2 |
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); |