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/9acf7ea2c5f9e428d3791f224b54f2e757ace36b Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/aliasbr.c b/uip/aliasbr.c index 8462fbdc..03934416 100644 --- a/uip/aliasbr.c +++ b/uip/aliasbr.c @@ -149,7 +149,7 @@ akval (struct aka *ak, char *s) } } - return getcpy (s); + return mh_xstrdup(s); } @@ -479,7 +479,7 @@ add_aka (struct aka *ak, char *pp) return; NEW(ad); - ad->ad_text = getcpy (pp); + ad->ad_text = mh_xstrdup(pp); ad->ad_local = strchr(pp, '@') == NULL && strchr(pp, '!') == NULL; ad->ad_next = NULL; if (ak->ak_addr)