]> diplodocus.org Git - nmh/blobdiff - uip/forw.c
mhbuild.man: Avoid using format-free printf(3) in example.
[nmh] / uip / forw.c
index 51caa0bcd7ad4c28e55e02d4888f2ae3b5a5d44e..6ec53be3a1c99b67093786c6c7b58b34983ba9ba 100644 (file)
@@ -8,6 +8,7 @@
 #include <h/mh.h>
 #include <fcntl.h>
 #include <h/tws.h>
+#include "h/done.h"
 #include <h/utils.h>
 #include "sbr/m_maildir.h"
 
@@ -178,7 +179,7 @@ main (int argc, char **argv)
                case FILTSW:
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);
-                   filter = getcpy (etcpath (cp));
+                   filter = mh_xstrdup(etcpath(cp));
                    mime = 0;
                    continue;
                case FORMSW: 
@@ -187,7 +188,7 @@ main (int argc, char **argv)
                    continue;
 
                case FRMTSW:
-                   filter = getcpy (etcpath (mhlforward));
+                   filter = mh_xstrdup(etcpath(mhlforward));
                    continue;
                case NFRMTSW:
                    filter = NULL;