the `X' characters in the template passed to `mktemp'.
}
if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1]))
strcat (tempfile, "/");
+ if ('/' == DIRECTORY_SEP)
+ dostounix_filename (tempfile);
+ else
+ unixtodos_filename (tempfile);
#ifdef WINDOWSNT
strcat (tempfile, "emXXXXXX");
#else
strcat (tempfile, "detmp.XXX");
#endif
- if ('/' == DIRECTORY_SEP)
- dostounix_filename (tempfile);
- else
- unixtodos_filename (tempfile);
#else /* not DOS_NT */
#ifdef VMS