X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fap.c;h=41eae6a2274964b28422475640f542f40af57a31;hp=041abf1496044ac85a4fe21ff22dc76fd4722107;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/uip/ap.c b/uip/ap.c index 041abf1..41eae6a 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -31,6 +31,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + static struct format *fmt; static int dat[5]; @@ -140,11 +142,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);