X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_scratch.c;h=d71257696f378f20c05021c3ba6ad4cc16eba690;hp=e29b10a0f6f680cd8bf053d87faeefac7a51c762;hb=045b9601403a216c400642229f2b291f85f88f7d;hpb=17e31955aca3a425a3c6d6fc128f6648f9550369 diff --git a/sbr/m_scratch.c b/sbr/m_scratch.c index e29b10a..d712576 100644 --- a/sbr/m_scratch.c +++ b/sbr/m_scratch.c @@ -15,11 +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