]> diplodocus.org Git - nmh/blobdiff - uip/rcvtty.c
eliminate use of fgets() in mhparse.c
[nmh] / uip / rcvtty.c
index bf140ddd0daf2b16d71ad35098ff6b7f99d2be40..3bee075e038e6165f50593c1cb11a952154e60ef 100644 (file)
@@ -192,6 +192,7 @@ message_fd (char **vec)
        advise(NULL, "unable to create temporary file in %s", get_temp_dir());
        return NOTOK;
     }
+    (void) m_unlink(tfile);  /* Use fd, no longer need the file name. */
 
     if ((child_id = fork()) == NOTOK) {
        /* fork error */
@@ -255,6 +256,7 @@ header_fd (void)
        advise(NULL, "unable to create temporary file in %s", get_temp_dir());
         return NOTOK;
     }
+    (void) m_unlink(tfile);  /* Use fd, no longer need the file name. */
 
     rewind (stdin);