X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/48fe6191c41863e62636096d063bc031fcd1b55b..c3238c0e:/sbr/m_maildir.c?ds=inline diff --git a/sbr/m_maildir.c b/sbr/m_maildir.c index 2947c9b5..846268ac 100644 --- a/sbr/m_maildir.c +++ b/sbr/m_maildir.c @@ -1,6 +1,4 @@ - -/* - * m_maildir.c -- get the path for the mail directory +/* m_maildir.c -- get the path for the mail directory * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -44,10 +42,10 @@ m_mailpath (char *folder) char maildir[BUFSIZ]; if (*folder != '/' - && !HasPrefix(folder, CWD) + && !has_prefix(folder, CWD) && strcmp (folder, DOT) && strcmp (folder, DOTDOT) - && !HasPrefix(folder, PWD)) { + && !has_prefix(folder, PWD)) { strncpy (maildir, mailfold, sizeof(maildir)); /* preserve... */ cp = getcpy (m_maildir (folder)); strncpy (mailfold, maildir, sizeof(mailfold)); @@ -69,10 +67,10 @@ exmaildir (char *folder) folder = getfolder(1); if (!(*folder != '/' - && !HasPrefix(folder, CWD) + && !has_prefix(folder, CWD) && strcmp (folder, DOT) && strcmp (folder, DOTDOT) - && !HasPrefix(folder, PWD))) { + && !has_prefix(folder, PWD))) { strncpy (mailfold, folder, sizeof(mailfold)); return mailfold; }