From 0253a4353f653e8e8fb47266e682f23db5159e6d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 5 May 2024 11:40:40 -0700 Subject: [PATCH] NPAR: Fix order of arguments to xnmalloc(). --- src/language/commands/npar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/language/commands/npar.c b/src/language/commands/npar.c index 721a84aad8..b044592e8f 100644 --- a/src/language/commands/npar.c +++ b/src/language/commands/npar.c @@ -308,8 +308,8 @@ npar_execute (struct casereader *input, if (specs->descriptives && specs->n_vars > 0) { - summary_descriptives = xnmalloc (sizeof (*summary_descriptives), - specs->n_vars); + summary_descriptives = xnmalloc (specs->n_vars, + sizeof (*summary_descriptives)); npar_summary_calc_descriptives (summary_descriptives, casereader_clone (input), -- 2.30.2