Mercurial > octave-nkf
diff src/file-io.cc @ 4354:dfd47756dda7
[project @ 2003-02-21 21:42:02 by jwe]
author | jwe |
---|---|
date | Fri, 21 Feb 2003 21:42:02 +0000 |
parents | de9b588bf002 |
children | 26f74e9fd8a5 |
line wrap: on
line diff
--- 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);