aboutsummaryrefslogtreecommitdiff
path: root/libX11/modules/im/ximcp/imTrX.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/modules/im/ximcp/imTrX.c')
-rw-r--r--libX11/modules/im/ximcp/imTrX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libX11/modules/im/ximcp/imTrX.c b/libX11/modules/im/ximcp/imTrX.c
index 1412d7046..76ff20e55 100644
--- a/libX11/modules/im/ximcp/imTrX.c
+++ b/libX11/modules/im/ximcp/imTrX.c
@@ -372,7 +372,7 @@ _XimXGetReadData(
XFree(prop_ret);
return False;
}
- if (buf_len >= length) {
+ if (buf_len >= (int)nitems) {
(void)memcpy(buf, prop_ret, (int)nitems);
*ret_len = (int)nitems;
if (bytes_after_ret > 0) {