changeset 19471:da86488d3d59

Two more tmpnam -> tempname changes in core Octave. * record.m: Replace tmpnam with tempname. * printd.m: Remove comment that used tmpnam.
author Rik <rik@octave.org>
date Wed, 22 Oct 2014 11:05:26 -0700
parents 6ca096827123
children 98a18bc3208e
files scripts/audio/record.m scripts/plot/util/printd.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/audio/record.m
+++ b/scripts/audio/record.m
@@ -39,7 +39,7 @@
 
   unwind_protect
 
-    file = tmpnam ();
+    file = tempname ();
 
     input ("Please hit ENTER and speak afterwards!\n", 1);
 
--- a/scripts/plot/util/printd.m
+++ b/scripts/plot/util/printd.m
@@ -44,7 +44,7 @@
     error ("The output filename: %s requires a suffix.\nOptions are: pdf ps eps txt jpg jpeg", filename);
   endif
   opt = substr (filename, sufix+1);
-  [pf, tempf, mag] = mkstemp ("oct-XXXXXX", 1);  # Safe version of tmpnam()
+  [pf, tempf, mag] = mkstemp ("oct-XXXXXX", 1);
   fprintf (pf, "%s", disp (obj));
   frewind (pf);