summaryrefslogtreecommitdiff
path: root/modules/im/ximcp/imTrX.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/im/ximcp/imTrX.c')
-rw-r--r--modules/im/ximcp/imTrX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/im/ximcp/imTrX.c b/modules/im/ximcp/imTrX.c
index 1412d704..76ff20e5 100644
--- a/modules/im/ximcp/imTrX.c
+++ b/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) {