Fix incorrectly ordered arguments to xcalloc
[pspp-builds.git] / src / ui / gui / psppire-scanf.c
index 2396245af7357005b9da109802c379c115815552..c2c8e55ade92df8cbf874e3733ad33c574ff73e0 100644 (file)
@@ -93,7 +93,7 @@ guts (PsppireScanf *scanf)
   g_return_if_fail (0 == printf_parse (scanf->format, &scanf->d, &a));
 
   if ( scanf->d.count > 0)
-    scanf->widgets = xcalloc (sizeof (*scanf->widgets), scanf->d.count);
+    scanf->widgets = xcalloc (scanf->d.count, sizeof (*scanf->widgets));
 
   /* A is not used, so get rid of it */
   if (a.arg != a.direct_alloc_arg)