]> diplodocus.org Git - nmh/blobdiff - uip/refile.c
Alter HasSuffixC()'s char * to be const.
[nmh] / uip / refile.c
index 6f8438d0b8a882566fb98871df75eb6e704904ff..ce56c51e8d3b53e344282ae164b219114564a42d 100644 (file)
@@ -217,7 +217,7 @@ main (int argc, char **argv)
      */
     for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
        if (is_selected (mp, msgnum)) {
-           cp = getcpy (m_name (msgnum));
+           cp = mh_xstrdup(m_name (msgnum));
            if (m_file (mp, cp, retainseqs ? msgnum : 0, folders, foldp,
                         preserve, !linkf))
                done (1);