]> diplodocus.org Git - nmh/blobdiff - sbr/addrsbr.c
Another pass at cleaning up (some of) the manpages.
[nmh] / sbr / addrsbr.c
index 3028847a42478e399cf9115bbae0f3212e8d0f94..23a7cb4cbbd4d27adbfbcda813993cf3a36a126f 100644 (file)
@@ -11,6 +11,7 @@
 #include <h/addrsbr.h>
 #include <h/mf.h>
 #include <h/mts.h>
+#include <h/utils.h>
 
 /* High level parsing of addresses:
 
@@ -138,7 +139,7 @@ getm (char *str, char *dfhost, int dftype, char *eresult, size_t eresultsize)
        dftype = LOCALHOST;
     }
 
-    mp = (struct mailname *) calloc ((size_t) 1, sizeof(*mp));
+    mp = (struct mailname *) mh_xcalloc ((size_t) 1, sizeof(*mp));
     if (mp == NULL) {
        if (eresult) {
            strncpy (eresult, "insufficient memory to represent address",