X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/99873064b5f03ef92885f5e5fcadb4374c39a9ef..ae0ecdc14e4fe091c063495971bc6fdd85e4e2f3:/uip/ap.c diff --git a/uip/ap.c b/uip/ap.c index b231a0eb..9250b08a 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -11,6 +11,7 @@ #include #include #include +#include #define NADDRS 100 @@ -54,7 +55,7 @@ main (int argc, char **argv) if (nmh_init(argv[0], 1)) { return 1; } - mts_init (invo_name); + mts_init (); arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -154,7 +155,7 @@ process (char *arg, int length) (q = &pq)->pq_next = NULL; while ((cp = getname (arg))) { - if ((p = (struct pqpair *) calloc ((size_t) 1, sizeof(*p))) == NULL) + if ((p = (struct pqpair *) mh_xcalloc ((size_t) 1, sizeof(*p))) == NULL) adios (NULL, "unable to allocate pqpair memory"); if ((mp = getm (cp, NULL, 0, error, sizeof(error))) == NULL) { p->pq_text = getcpy (cp);