/*
* path.c -- return a pathname
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
+#include <h/utils.h>
#define CWD "./"
#define NCWD (sizeof(CWD) - 1)
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;