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