diff options
Diffstat (limited to 'src/Converters.c')
-rw-r--r-- | src/Converters.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Converters.c b/src/Converters.c index 97f1ce5..f34aef2 100644 --- a/src/Converters.c +++ b/src/Converters.c @@ -1719,8 +1719,8 @@ XtCvtStringToCommandArgArray(Display *dpy, dst++; } - ptr = strarray = (String *) - __XtMalloc((Cardinal) ((size_t) (tokens + 1) * sizeof(String))); + ptr = strarray = XtMallocArray((Cardinal) tokens + 1, + (Cardinal) sizeof(String)); src = dst_str; while (--tokens >= 0) { *ptr = src; |