From fa84a13141e054c3d519b75a3b41bc448420ba7e Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 14:52:25 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- uip/dist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.56.0