From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:26 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2160e9cc8986346b8574bd179ed53c9839087507?hp=5231493ca1103d6a26feb0e09d22936a3f69be3b Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/picksbr.c b/uip/picksbr.c index 0085b7a0..f262e9ca 100644 --- a/uip/picksbr.c +++ b/uip/picksbr.c @@ -422,7 +422,7 @@ nexp3 (void) free (n); return NULL; } - n->n_patbuf = getcpy (dp); + n->n_patbuf = mh_xstrdup(dp); return n; case PROTHR: