X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frcvstore.c;h=668eb86eb7914a8881336ff797ecd5842f1a672e;hb=676aafb5cca9531170843b28fe4e3ba12c322c50;hp=21f6c776d8bd4ad6d2af65a73f5c08b440c01796;hpb=25c0bc3f1c034964421f8007e5802c647c5dc908;p=mmh diff --git a/uip/rcvstore.c b/uip/rcvstore.c index 21f6c77..668eb86 100644 --- a/uip/rcvstore.c +++ b/uip/rcvstore.c @@ -173,9 +173,10 @@ main (int argc, char **argv) SIGNAL (SIGTERM, SIG_IGN); /* create a temporary file */ - tmpfilenam = m_scratch ("", invo_name); - if ((fd = creat (tmpfilenam, m_gmprot ())) == NOTOK) - adios (tmpfilenam, "unable to create"); + tmpfilenam = m_mktemp (invo_name, &fd, NULL); + if (tmpfilenam == NULL) { + adios ("rcvstore", "unable to create temporary file"); + } chmod (tmpfilenam, m_gmprot()); /* copy the message from stdin into temp file */