*/
(void)strncpy(body_file_name,
- m_mktemp(m_maildir(invo_name), NULL, NULL),
+ m_mktemp2(NULL, invo_name, NULL, NULL),
body_file_name_len);
(void)strncpy(composition_file_name,
- m_mktemp(m_maildir(invo_name), NULL, NULL),
+ m_mktemp2(NULL, invo_name, NULL, NULL),
composition_file_name_len);
if (has_body)
i = inplace ? msgnum + numburst : mp->hghmsg;
for (j = numburst; j >= (inplace ? 0 : 1); i--, j--) {
strncpy (f1, m_name (i), sizeof(f1));
- strncpy (f2, m_mktemp(invo_name, NULL, &out), sizeof(f2));
+ strncpy (f2, m_mktemp2(NULL, invo_name, NULL, &out), sizeof(f2));
if (verbosw && i != msgnum)
printf ("message %d of digest %d becomes message %d\n", j, msgnum, i);
*/
if (compfile[0] == '-' && compfile[1] == '\0') {
/* copy standard input to temporary file */
- strncpy (infile, m_mktemp(invo_name, NULL, &fp), sizeof(infile));
+ strncpy (infile, m_mktemp2(NULL, invo_name, NULL, &fp), sizeof(infile));
while (fgets (buffer, BUFSIZ, stdin))
fputs (buffer, fp);
fclose (fp);
if ((out = fopen ("/dev/null", "w")) == NULL)
adios ("/dev/null", "unable to open");
} else {
- char *cp = m_mktemp(m_maildir(invo_name), NULL, &out);
+ char *cp = m_mktemp2(NULL, invo_name, NULL, &out);
if (cp == NULL) {
- cp = m_mktemp2(NULL, invo_name, NULL, &out);
- if (cp == NULL) {
- adios ("post", "unable to create temporary file");
- }
+ adios ("post", "unable to create temporary file");
}
strncpy(tmpfil, cp, sizeof(tmpfil));
chmod (tmpfil, 0600);