summaryrefslogtreecommitdiff
path: root/src/TMparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/TMparse.c')
-rw-r--r--src/TMparse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/TMparse.c b/src/TMparse.c
index 2fe7fe5..f93244c 100644
--- a/src/TMparse.c
+++ b/src/TMparse.c
@@ -1803,8 +1803,7 @@ ParseParamSeq(register String str, String **paramSeqP, Cardinal *paramNumP)
}
if (num_params != 0) {
- String *paramP = (String *)
- __XtMalloc((Cardinal) ((num_params + 1) * sizeof(String)));
+ String *paramP = XtMallocArray(num_params + 1, (Cardinal)sizeof(String));
Cardinal i;
*paramSeqP = paramP;