]> 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 8350b98d7f852ac63ebe0a7ef86965c7905f522b..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,10 +138,10 @@ context_read (void)
        return;
     }
     
-    ctxpath = getcpy (m_maildir (cp));
+    ctxpath = mh_xstrdup(m_maildir(cp));
 
     if ((ib = lkfopendata (ctxpath, "r", &failed_to_lock))) {
-       readconfig ((struct node **) 0, ib, cp, 1);
+       readconfig(NULL, ib, cp, 1);
        lkfclosedata (ib, ctxpath);
     }
 }