NPAR: Fix order of arguments to xnmalloc().
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 5 May 2024 18:40:40 +0000 (11:40 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 5 May 2024 18:40:42 +0000 (11:40 -0700)
src/language/commands/npar.c

index 721a84aad83f72228380839b1497dd453b2eabf2..b044592e8f269c75caae897c334c3106958e1690 100644 (file)
@@ -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),