X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/322f6f0518f2fca892733dea85d87c33fcb65e83..ab6a6ff3011244795eb920cc577114776f57d63f:/sbr/path.c diff --git a/sbr/path.c b/sbr/path.c index 7ef83eab..896c1ad9 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -2,14 +2,13 @@ /* * 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 +#include #define CWD "./" #define NCWD (sizeof(CWD) - 1) @@ -59,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;