subscript fixes; added free functions
[pspp] / src / language / utilities / title.c
index d494e35e8e2cad2aa96cc1ebb736929c4ca421cf..18e4bb2745068af5f6e156e8642b4d1f497ca070 100644 (file)
    02110-1301, USA. */
 
 #include <config.h>
+
 #include <ctype.h>
 #include <stdlib.h>
-#include <libpspp/alloc.h>
-#include <language/command.h>
+
 #include <data/dictionary.h>
-#include <libpspp/message.h>
+#include <data/procedure.h>
+#include <data/variable.h>
+#include <language/command.h>
 #include <language/lexer/lexer.h>
-#include <output/output.h>
+#include <libpspp/alloc.h>
+#include <libpspp/message.h>
 #include <libpspp/start-date.h>
-#include <data/variable.h>
 #include <libpspp/version.h>
-#include <procedure.h>
+#include <output/output.h>
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -61,7 +63,7 @@ get_title (const char *cmd, char **title)
        return CMD_FAILURE;
       if (*title)
        free (*title);
-      *title = xstrdup (ds_c_str (&tokstr));
+      *title = ds_xstrdup (&tokstr);
       lex_get ();
       if (token != '.')
        {