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/fa84a13141e054c3d519b75a3b41bc448420ba7e?hp=ef3d1c488ff7104fc473561ff066f242077b4e6b Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/dist.c b/uip/dist.c index 09c501a8..f846b74d 100644 --- a/uip/dist.c +++ b/uip/dist.c @@ -218,7 +218,7 @@ main (int argc, char **argv) } } - cwd = getcpy (pwd ()); + cwd = mh_xstrdup(pwd ()); if (!context_find ("path")) free (path ("./", TFOLDER)); @@ -292,7 +292,7 @@ try_it_again: adios (NULL, "only one message at a time!"); } - msgnam = file ? file : getcpy (m_name (mp->lowsel)); + msgnam = file ? file : mh_xstrdup(m_name (mp->lowsel)); dat[0] = mp ? mp->lowsel : 0; dat[1] = 0;