X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/eb9d95f038fd0268a821ab332df24ce2592b7482..11e2fb2dbbc074cce78d62fdf425e6bbf1918949:/uip/forwsbr.c diff --git a/uip/forwsbr.c b/uip/forwsbr.c index 7c480e25..295507d6 100644 --- a/uip/forwsbr.c +++ b/uip/forwsbr.c @@ -174,14 +174,16 @@ finished: } cp = m_mktemp2(NULL, invo_name, NULL, &tmp); - if (cp == NULL) adios("forw", "unable to create temporary file"); + if (cp == NULL) { + adios(NULL, "unable to create temporary file in %s", get_temp_dir()); + } strncpy (tmpfil, cp, sizeof(tmpfil)); - unlink (tmpfil); + (void) m_unlink (tmpfil); if ((in = dup (fileno (tmp))) == NOTOK) adios ("dup", "unable to"); line = mh_xmalloc ((unsigned) fmtsize); - fmt_scan (fmt, line, fmtsize - 1, fmtsize, dat); + fmt_scan (fmt, line, fmtsize - 1, fmtsize, dat, NULL); fputs (line, tmp); free (line); if (fclose (tmp))