X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e5479da8544d4fe47a320934667cb91c1c6a309e..ab2c72d2f25e801aebf4cae0e0b8128b288ac5c5:/uip/mhstore.c diff --git a/uip/mhstore.c b/uip/mhstore.c index ed6ad77f..b7c9943b 100644 --- a/uip/mhstore.c +++ b/uip/mhstore.c @@ -14,6 +14,7 @@ #include #include #include +#include "h/done.h" #include #include "mhmisc.h" #include "sbr/m_maildir.h" @@ -78,7 +79,7 @@ main (int argc, char **argv) if (nmh_init(argv[0], 1)) { return 1; } - done=freects_done; + set_done(freects_done); arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -238,7 +239,7 @@ do_cache: /* Check for private cache location */ if (!(cache_private = context_find (nmhprivcache))) cache_private = ".cache"; - cache_private = getcpy (m_maildir (cache_private)); + cache_private = mh_xstrdup(m_maildir(cache_private)); /* * Cache the current directory before we do any chdirs()'s.