Fixed bugs which crept in with the variable encapsulation changes.
[pspp] / src / ui / gui / psppire-data-store.c
index 65a4391d224402e353648de7795607c57e03366b..59c7f4947c213ab662dbf2b6eaf88e5221af3298 100644 (file)
@@ -437,7 +437,7 @@ psppire_data_store_insert_new_case(PsppireDataStore *ds, gint posn)
   
   case_create (&cc, val_cnt);
 
-  memset ( case_data_rw (&cc, 0), 0, val_cnt * MAX_SHORT_STRING);
+  memset ( case_data_rw_idx (&cc, 0), 0, val_cnt * MAX_SHORT_STRING);
 
   for (v = 0 ; v < psppire_dict_get_var_cnt (ds->dict) ; ++v) 
     {