changeset 4354:dfd47756dda7

[project @ 2003-02-21 21:42:02 by jwe]
author jwe
date Fri, 21 Feb 2003 21:42:02 +0000
parents ea4b8c35ac9d
children 6fa0c2306ef6
files configure.in src/ChangeLog src/file-io.cc
diffstat 3 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Feb 21 21:04:41 2003 +0000
+++ b/configure.in	Fri Feb 21 21:42:02 2003 +0000
@@ -22,7 +22,7 @@
 ### 02111-1307, USA. 
 
 AC_INIT
-AC_REVISION($Revision: 1.416 $)
+AC_REVISION($Revision: 1.417 $)
 AC_PREREQ(2.52)
 AC_CONFIG_SRCDIR([src/octave.cc])
 AC_CONFIG_HEADER(config.h)
@@ -639,7 +639,7 @@
 
 AC_ARG_ENABLE(rpath,
   [  --enable-rpath          override the default link options for rpath;
-                            e.g., --with-rpath='-rpath $(octlibdir)'],
+                            e.g., --enable-rpath='-rpath $(octlibdir)'],
   [ if test "$enableval" = no; then use_rpath=false;
     else
       use_rpath=true
--- a/src/ChangeLog	Fri Feb 21 21:04:41 2003 +0000
+++ b/src/ChangeLog	Fri Feb 21 21:42:02 2003 +0000
@@ -1,3 +1,8 @@
+2003-02-21  Paul Kienzle <pkienzle@users.sf.net>
+
+	* file-io.cc (Fmkstemp): Use OCTAVE_LOCAL_BUFFER instead of using
+	std::auto_ptr directly.
+
 2003-02-21  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* ov.h, ov.cc (octave_value (long long int)): New constructor.
--- a/src/file-io.cc	Fri Feb 21 21:04:41 2003 +0000
+++ b/src/file-io.cc	Fri Feb 21 21:42:02 2003 +0000
@@ -1613,8 +1613,8 @@
 
       if (! error_state)
 	{
-	  std::auto_ptr<char> tmp_auto_ptr (strsave (tmpl8.c_str ()));
-	  char *tmp = tmp_auto_ptr.get ();
+	  OCTAVE_LOCAL_BUFFER (char, tmp, tmpl8.size () + 1);
+	  strcpy (tmp, tmpl8.c_str ());
 
 	  int fd = mkstemp (tmp);