From: Ralph Corderoy Date: Mon, 17 Oct 2016 00:28:53 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup(). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b9dda34301de552ad6413e4dd022114fd5219cc9?hp=6eb1f7c57d8343e61a1130491d08fd821746adc9 Replace getcpy() with mh_xstrdup(). --- diff --git a/sbr/path.c b/sbr/path.c index 5a9529de..896c1ad9 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -8,6 +8,7 @@ */ #include +#include #define CWD "./" #define NCWD (sizeof(CWD) - 1) @@ -57,7 +58,7 @@ expath (char *name, int flag) snprintf (buffer, sizeof(buffer), "%s/", m_maildir ("")); if (ssequal (buffer, name)) { cp = name; - name = getcpy (name + strlen (buffer)); + name = mh_xstrdup(name + strlen(buffer)); free (cp); } flag = TFOLDER;