X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..63621a81d16ab743de6b57d47578a9a2c670ad22:/uip/comp.c diff --git a/uip/comp.c b/uip/comp.c index 2bd5ef70..744ea19b 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -1,5 +1,4 @@ -/* - * comp.c -- compose a message +/* comp.c -- compose a message * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -9,6 +8,7 @@ #include #include #include +#include "sbr/m_maildir.h" #include #define COMP_SWITCHES \ @@ -191,7 +191,7 @@ main (int argc, char **argv) if (*cp == '@') cp = dp = path(cp + 1, TSUBCWF); fcc = addlist(fcc, cp); - mh_xfree(dp); + free(dp); continue; case WIDTHSW: @@ -211,13 +211,11 @@ main (int argc, char **argv) if (*cp == '+' || *cp == '@') { if (folder) adios (NULL, "only one folder at a time!"); - else - folder = pluspath (cp); + folder = pluspath (cp); } else { if (msg) adios (NULL, "only one message at a time!"); - else - msg = cp; + msg = cp; } } @@ -396,7 +394,7 @@ edit_it: if (nwhat) done (0); - what_now (ed, nedit, use, drft, NULL, 0, NULLMP, NULL, 0, cwd, 0); + what_now (ed, nedit, use, drft, NULL, 0, NULL, NULL, 0, cwd, 0); done (1); return 1; }