From a53bce89b61471cfb7725435aa879226624eed8f 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/inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uip/inc.c b/uip/inc.c index 1e9f3c60..62c56eb1 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -653,7 +653,7 @@ go_to_it: adios (packfile, "write error on"); fseek (pf, start, SEEK_SET); } else { - cp = getcpy (m_name (msgnum)); + cp = mh_xstrdup(m_name (msgnum)); if ((pf = fopen (cp, "w+")) == NULL) adios (cp, "unable to write"); chmod (cp, m_gmprot ()); @@ -800,7 +800,7 @@ go_to_it: msgnum++; sp = Maildir[i].filename; - cp = getcpy (m_name (msgnum)); + cp = mh_xstrdup(m_name (msgnum)); pf = NULL; if (!trnflag || link(sp, cp) == -1) { static char buf[65536]; -- 2.56.0