diff liboctave/file-ops.cc @ 10178:6bd86b6287b1

provide wrapper for tempnam
author John W. Eaton <jwe@octave.org>
date Thu, 21 Jan 2010 02:53:37 -0500
parents cb3d926b4d9e
children 326746625a51
line wrap: on
line diff
--- a/liboctave/file-ops.cc
+++ b/liboctave/file-ops.cc
@@ -523,7 +523,7 @@
 
   const char *ppfx = pfx.empty () ? 0 : pfx.c_str ();
 
-  char *tmp = ::tempnam (pdir, ppfx);
+  char *tmp = octave_tempnam (pdir, ppfx);
 
   if (tmp)
     {