Apply patch from Jason Stover <jstover@sdf.lonestar.org> to obtain
[pspp-builds.git] / src / title.c
index cb56f84db2db7e38a57b2b7d543b83ac93b3bca7..68a38e47f084f3e9d96e27bb8f0b0a8f943d0153 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include "alloc.h"
 #include "command.h"
+#include "dictionary.h"
 #include "error.h"
 #include "lexer.h"
 #include "main.h"
@@ -60,7 +61,7 @@ get_title (const char *cmd, char **title)
        return CMD_FAILURE;
       if (*title)
        free (*title);
-      *title = xstrdup (ds_value (&tokstr));
+      *title = xstrdup (ds_c_str (&tokstr));
       lex_get ();
       if (token != '.')
        {