aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src/xkb/XKBRdBuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/src/xkb/XKBRdBuf.c')
-rw-r--r--nx-X11/lib/src/xkb/XKBRdBuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/src/xkb/XKBRdBuf.c b/nx-X11/lib/src/xkb/XKBRdBuf.c
index 381f4c900..a34039f37 100644
--- a/nx-X11/lib/src/xkb/XKBRdBuf.c
+++ b/nx-X11/lib/src/xkb/XKBRdBuf.c
@@ -71,7 +71,7 @@ _XkbCopyFromReadBuffer(XkbReadBufferPtr from, char *to, int size)
if ((from == NULL) || (from->error) || (to == NULL) || (size < 1) ||
(_XkbReadBufferDataLeft(from) < size))
return 0;
- memcpy(to, from->data, size);
+ memcpy(to, from->data, (size_t)size);
from->data += size;
return 1;
}