]> diplodocus.org Git - nmh/blobdiff - uip/dist.c
Alter HasSuffixC()'s char * to be const.
[nmh] / uip / dist.c
index 09c501a8b7e6a0b3920ada06fd6e5f6a9d349c3f..f846b74da7f1b11c67f156b403c8f768de883481 100644 (file)
@@ -218,7 +218,7 @@ main (int argc, char **argv)
        }
     }
 
-    cwd = getcpy (pwd ());
+    cwd = mh_xstrdup(pwd ());
 
     if (!context_find ("path"))
        free (path ("./", TFOLDER));
@@ -292,7 +292,7 @@ try_it_again:
            adios (NULL, "only one message at a time!");
     }
 
-    msgnam = file ? file : getcpy (m_name (mp->lowsel));
+    msgnam = file ? file : mh_xstrdup(m_name (mp->lowsel));
 
     dat[0] = mp ? mp->lowsel : 0;
     dat[1] = 0;