]> diplodocus.org Git - nmh/blobdiff - uip/replsbr.c
Added support for "-" to indicate stdout to output_message().
[nmh] / uip / replsbr.c
index b696ae71eaaf1ac26fea246e827eb8ce6597f43a..25049af17d19e7b2dc2697fb980160302fc47b81 100644 (file)
@@ -172,12 +172,12 @@ replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
                adios (NULL, "m_getfld() returned %d", state);
        }
     }
                adios (NULL, "m_getfld() returned %d", state);
        }
     }
-    m_getfld_state_destroy (&gstate);
 
     /*
      * format and output the header lines.
      */
 finished:
 
     /*
      * format and output the header lines.
      */
 finished:
+    m_getfld_state_destroy (&gstate);
 
     /*
      * if there's a "Subject" component, strip any "Re:"s off it
 
     /*
      * if there's a "Subject" component, strip any "Re:"s off it
@@ -424,7 +424,7 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc)
     rewind (in);
     lseek (fileno(in), (off_t) 0, SEEK_SET);
 
     rewind (in);
     lseek (fileno(in), (off_t) 0, SEEK_SET);
 
-    switch (pid = vfork()) {
+    switch (pid = fork()) {
        case NOTOK: 
            adios ("fork", "unable to");
 
        case NOTOK: 
            adios ("fork", "unable to");