]> diplodocus.org Git - nmh/commitdiff
Replace getcpy() with mh_xstrdup().
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 00:28:53 +0000 (01:28 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 17 Oct 2016 00:28:53 +0000 (01:28 +0100)
sbr/path.c

index 5a9529d..896c1ad 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 #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;