include h/utils.h
[mmh] / uip / ap.c
index acf3cac..8156517 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -9,6 +9,7 @@
 #include <h/mh.h>
 #include <h/addrsbr.h>
 #include <h/fmt_scan.h>
+#include <h/utils.h>
 #include <locale.h>
 #include <sysexits.h>
 
@@ -138,7 +139,7 @@ process(char *arg, int norm)
        (q = &pq)->pq_next = NULL;
        while ((cp = getname(arg))) {
                if ((p = (struct pqpair *)
-                               calloc((size_t) 1, sizeof(*p))) == NULL)
+                               mh_xcalloc((size_t) 1, sizeof(*p))) == NULL)
                        adios(EX_OSERR, NULL, "unable to allocate pqpair memory");
                if ((mp = getm(cp, NULL, 0, norm, error)) == NULL) {
                        p->pq_text = getcpy(cp);