X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..97e7d6f2f5db4e8f09cb015ee6c2da2ff129f963:/sbr/m_scratch.c?ds=sidebyside diff --git a/sbr/m_scratch.c b/sbr/m_scratch.c index 123a4983..70a2c920 100644 --- a/sbr/m_scratch.c +++ b/sbr/m_scratch.c @@ -15,7 +15,17 @@ m_scratch (char *file, char *template) static char buffer[BUFSIZ], tmpfil[BUFSIZ]; snprintf (tmpfil, sizeof(tmpfil), "%sXXXXXX", template); +/* + Mkstemp work postponed until later -Doug +#ifdef HAVE_MKSTEMP + mkstemp (tmpfil); +#else +*/ mktemp (tmpfil); +/* +#endif +*/ + /* nasty - this really means: if there is no '/' in the path */ if ((cp = r1bindex (file, '/')) == file) strncpy (buffer, tmpfil, sizeof(buffer)); else