Change "union value" to dynamically allocate long strings.
[pspp-builds.git] / src / ui / syntax-gen.c
index 84415c3e92f38adac840c6842c433c2b8aeab49d..bf1ee12f244caadbfc4197c0b7be466c7660a51e 100644 (file)
@@ -194,7 +194,7 @@ syntax_gen_value (struct string *output, const union value *value, int width,
   if (width == 0)
     syntax_gen_number (output, value->f, format);
   else
-    syntax_gen_string (output, ss_buffer (value->s, width));
+    syntax_gen_string (output, ss_buffer (value_str (value, width), width));
 }
 
 /* Appends <low> THRU <high> to OUTPUT.  If LOW is LOWEST, then