X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_scratch.c;h=30601f14698461805981cb066fcba38820895041;hp=123a4983466100d825fe140e303d29ed85c47d17;hb=6c42153ad9362cc676ea66563bf400d7511b3b68;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/sbr/m_scratch.c b/sbr/m_scratch.c index 123a498..30601f1 100644 --- a/sbr/m_scratch.c +++ b/sbr/m_scratch.c @@ -3,6 +3,10 @@ * m_scratch.c -- construct a scratch file * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -15,7 +19,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