Replace getcpy() and strdup() with mh_xstrdup()
[mmh] / uip / ap.c
index 041abf1..9d35601 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -140,11 +140,11 @@ process(char *arg, int norm)
        while ((cp = getname(arg))) {
                p = mh_xcalloc(1, sizeof(*p));
                if ((mp = getm(cp, NULL, 0, norm, error)) == NULL) {
-                       p->pq_text = getcpy(cp);
-                       p->pq_error = getcpy(error);
+                       p->pq_text = mh_xstrdup(cp);
+                       p->pq_error = mh_xstrdup(error);
                        status++;
                } else {
-                       p->pq_text = getcpy(mp->m_text);
+                       p->pq_text = mh_xstrdup(mp->m_text);
                        mnfree(mp);
                }
                q = (q->pq_next = p);