From: Ben Pfaff Date: Sun, 5 May 2024 18:40:40 +0000 (-0700) Subject: NPAR: Fix order of arguments to xnmalloc(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0253a4353f653e8e8fb47266e682f23db5159e6d;p=pspp NPAR: Fix order of arguments to xnmalloc(). --- 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),