]> diplodocus.org Git - nmh/blobdiff - uip/inc.c
Add EndsWithC(char *s, int c) and call it in some initial places.
[nmh] / uip / inc.c
index 1e9f3c608e6b7aab79bf77046cbd9342a19ed6de..62c56eb17f5ef749df7f807190aae405f9ac5b8c 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -653,7 +653,7 @@ go_to_it:
                    adios (packfile, "write error on");
                fseek (pf, start, SEEK_SET);
            } else {
-               cp = getcpy (m_name (msgnum));
+               cp = mh_xstrdup(m_name (msgnum));
                if ((pf = fopen (cp, "w+")) == NULL)
                    adios (cp, "unable to write");
                chmod (cp, m_gmprot ());
@@ -800,7 +800,7 @@ go_to_it:
            msgnum++;
 
            sp = Maildir[i].filename;
-           cp = getcpy (m_name (msgnum));
+           cp = mh_xstrdup(m_name (msgnum));
            pf = NULL;
            if (!trnflag || link(sp, cp) == -1) {
                static char buf[65536];