diff src/utils.cc @ 1750:fd0d12493223

[project @ 1996-01-13 09:31:07 by jwe]
author jwe
date Sat, 13 Jan 1996 09:31:07 +0000
parents a02f140ed897
children 3a9462b655f1
line wrap: on
line diff
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -66,13 +66,12 @@
 #include "input.h"
 #include "mappers.h"
 #include "oct-hist.h"
-#include "toplev.h"
+#include "oct-obj.h"
 #include "pager.h"
 #include "pathsearch.h"
 #include "sysdep.h"
 #include "sysdir.h"
-#include "pt-const.h"
-#include "oct-obj.h"
+#include "toplev.h"
 #include "unwind-prot.h"
 #include "user-prefs.h"
 #include "utils.h"
@@ -231,9 +230,8 @@
 	  char *end = strchr (ptr, SEPCHAR);
 	  if (end)
 	    *end = '\0';
-	  char *result = tilde_expand (ptr);
-	  path[i] = strsave (result);
-	  free (result);
+	  string result = oct_tilde_expand (ptr);
+	  path[i] = strsave (result.c_str ());
 	  ptr = end + 1;
 	  i++;
 	}