X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_scratch.c;h=70a2c920285aa4dcf2aca268e05833e6f3f98694;hb=09470876aa753a96fa312296ed3c39ba761f3dd2;hp=123a4983466100d825fe140e303d29ed85c47d17;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/m_scratch.c b/sbr/m_scratch.c index 123a498..70a2c92 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