]> git.marmaro.de Git - mmh/blobdiff - sbr/m_scratch.c
When I fixed the long-standing makedir() bugs in January, I had the code call
[mmh] / sbr / m_scratch.c
index 123a4983466100d825fe140e303d29ed85c47d17..70a2c920285aa4dcf2aca268e05833e6f3f98694 100644 (file)
@@ -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