diff options
Diffstat (limited to 'nx-X11/lib/src/xlibi18n/ICWrap.c')
-rw-r--r-- | nx-X11/lib/src/xlibi18n/ICWrap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/lib/src/xlibi18n/ICWrap.c b/nx-X11/lib/src/xlibi18n/ICWrap.c index 69f080d87..f5caafb97 100644 --- a/nx-X11/lib/src/xlibi18n/ICWrap.c +++ b/nx-X11/lib/src/xlibi18n/ICWrap.c @@ -66,6 +66,7 @@ from The Open Group. #endif #include "Xlibint.h" #include "Xlcint.h" +#include "reallocarray.h" static int _XIMNestedListToNestedList( @@ -84,7 +85,7 @@ _XIMNestedListToNestedList( nlist++; } } - return ptr - list; + return (int) (ptr - list); } static void @@ -128,7 +129,7 @@ _XIMVaToNestedList(va_list var, int max_count, XIMArg **args_return) return; } - args = Xmalloc(((unsigned)max_count + 1) * sizeof(XIMArg)); + args = Xmallocarray((unsigned)max_count + 1, sizeof(XIMArg)); *args_return = args; if (!args) return; |