Fixed std. error of estimated R-square
[pspp-builds.git] / src / vars-prs.c
index 23f37010e3a176bb05bf80f448faed5117216c5c..7a6e8633c46eee3cefccca4b296443b546daf4d3 100644 (file)
@@ -30,6 +30,9 @@
 #include "misc.h"
 #include "str.h"
 
+#include "gettext.h"
+#define _(msgid) gettext (msgid)
+
 /* Parses a name as a variable within VS and returns the
    variable's index if successful.  On failure emits an error
    message and returns a null pointer. */
@@ -259,7 +262,7 @@ parse_var_set_vars (const struct var_set *vs,
     {
       int i;
       
-      included = xcalloc (var_set_get_cnt (vs));
+      included = xcalloc (var_set_get_cnt (vs), sizeof *included);
       for (i = 0; i < *nv; i++)
         included[(*v)[i]->index] = 1;
     }