]> diplodocus.org Git - nmh/blobdiff - sbr/path.c
Run lsb_release(1) if uname is Linux.
[nmh] / sbr / path.c
index 7ef83eabd39d1ff8cac24ef7f4089041bac27c3b..896c1ad926dcba7a3779b595d82fd73c9a3d4344 100644 (file)
@@ -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 <h/mh.h>
+#include <h/utils.h>
 
 #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;