Merge commit 'origin/stable'
[pspp-builds.git] / src / language / stats / crosstabs.q
index 60d2faee8b7348c2ffa26f2b911ea705b78b5866..68d11e307e0ff41584d1ffae0ef4abd6d8c9ff74 100644 (file)
@@ -1675,7 +1675,7 @@ enum_var_values (struct table_entry **entries, int entry_cnt, int var_idx,
 
   if (mode == GENERAL)
     {
-      int width = var_get_width (v);
+      int width = MIN (var_get_width (v), MAX_SHORT_STRING);
       int i;
 
       *values = xnmalloc (entry_cnt, sizeof **values);