Fix incorrectly ordered arguments to xcalloc
[pspp-builds.git] / src / ui / gui / widget-io.c
index e04e32222d85cdc50f4052463f44191ffc8f2824..da9c9cb1e868f7469c152a62307790779a5829d3 100644 (file)
@@ -51,7 +51,7 @@ widget_printf (const gchar *fmt, ...)
   if ( 0 !=  printf_parse (fmt, &d, &a) )
     return NULL;
 
-  widgets = xcalloc (sizeof (*widgets), d.count);
+  widgets = xcalloc (d.count, sizeof (*widgets));
   va_start (ap, fmt);
   for (i = 0 ; i < d.count ; ++i )
     {