X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_tmpfil.c;fp=sbr%2Fm_tmpfil.c;h=c0a60bca624795609e8db66c42f5633efa4d69b5;hp=291d996606c0d5a742c33da09a4a64b9d9f3dd05;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=f480c03187724e54e5391ee61b810827da319a6c diff --git a/sbr/m_tmpfil.c b/sbr/m_tmpfil.c index 291d996..c0a60bc 100644 --- a/sbr/m_tmpfil.c +++ b/sbr/m_tmpfil.c @@ -15,18 +15,18 @@ char * m_tmpfil (char *template) { - static char tmpfil[BUFSIZ]; + static char tmpfil[BUFSIZ]; - snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); + snprintf (tmpfil, sizeof(tmpfil), "/tmp/%sXXXXXX", template); /* - Mkstemp work postponed until later -Doug -#ifdef HAVE_MKSTEMP - unlink(mkstemp(tmpfil)); -#else -*/ - unlink(mktemp(tmpfil)); + * Mkstemp work postponed until later -Doug + * #ifdef HAVE_MKSTEMP + * unlink(mkstemp(tmpfil)); + * #else + */ + unlink(mktemp(tmpfil)); /* -#endif -*/ - return tmpfil; + * #endif + */ + return tmpfil; }