]> diplodocus.org Git - nmh/commitdiff
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 13:52:25 +0000 (14:52 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 13:52:25 +0000 (14:52 +0100)
uip/aliasbr.c

index 8462fbd..0393441 100644 (file)
@@ -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)