From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:25 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/e977b184441df7bc0aed29fa83c9c014dafc0961?ds=sidebyside Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/ap.c b/uip/ap.c index dff6dc43..48117846 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -157,8 +157,8 @@ process (char *arg, int length) while ((cp = getname (arg))) { NEW0(p); if ((mp = getm (cp, NULL, 0, error, sizeof(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 {