# HG changeset patch # User Rik # Date 1414001126 25200 # Node ID da86488d3d59b480e934c7dc12c0b99fdc064c1f # Parent 6ca096827123b97aee409581b57b1b97307e95eb Two more tmpnam -> tempname changes in core Octave. * record.m: Replace tmpnam with tempname. * printd.m: Remove comment that used tmpnam. diff -r 6ca096827123 -r da86488d3d59 scripts/audio/record.m --- a/scripts/audio/record.m Wed Oct 22 10:41:15 2014 -0700 +++ b/scripts/audio/record.m Wed Oct 22 11:05:26 2014 -0700 @@ -39,7 +39,7 @@ unwind_protect - file = tmpnam (); + file = tempname (); input ("Please hit ENTER and speak afterwards!\n", 1); diff -r 6ca096827123 -r da86488d3d59 scripts/plot/util/printd.m --- a/scripts/plot/util/printd.m Wed Oct 22 10:41:15 2014 -0700 +++ b/scripts/plot/util/printd.m Wed Oct 22 11:05:26 2014 -0700 @@ -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);