Separate settings and the SET command, for modularity.
[pspp-builds.git] / src / casefile.c
index aea4a14755565c3c0581a4ea40fd0012c9e4a77f..a49db99d6fcfdedb3b79e16afe758f8699afc824 100644 (file)
@@ -331,7 +331,7 @@ casefile_append (struct casefile *cf, const struct ccase *c)
   /* Try memory first. */
   if (cf->storage == MEMORY) 
     {
-      if (case_bytes < get_max_workspace ())
+      if (case_bytes < get_workspace ())
         {
           size_t block_idx = cf->case_cnt / CASES_PER_BLOCK;
           size_t case_idx = cf->case_cnt % CASES_PER_BLOCK;