]> diplodocus.org Git - nmh/blobdiff - sbr/context_read.c
mhbuild.man: Avoid using format-free printf(3) in example.
[nmh] / sbr / context_read.c
index a8d142021f002916d01282fd670a1a9d5fe2631e..f899624e324d64f0999c7060bef14e88aaedb955 100644 (file)
@@ -26,6 +26,7 @@
 #include "m_maildir.h"
 #include "makedir.h"
 #include <pwd.h>                               /* structure for getpwuid() results */
+#include "h/utils.h"
 
 void
 context_read (void)
@@ -137,7 +138,7 @@ context_read (void)
        return;
     }
     
-    ctxpath = getcpy (m_maildir (cp));
+    ctxpath = mh_xstrdup(m_maildir(cp));
 
     if ((ib = lkfopendata (ctxpath, "r", &failed_to_lock))) {
        readconfig(NULL, ib, cp, 1);