Replace getcpy() and strdup() with mh_xstrdup()
[mmh] / uip / rmf.c
index 64ee68c..e435a27 100644 (file)
--- a/uip/rmf.c
+++ b/uip/rmf.c
@@ -77,7 +77,7 @@ main(int argc, char **argv)
                        if (folder)
                                adios(EX_USAGE, NULL, "only one folder at a time!");
                        else
-                               folder = getcpy(expandfol(cp));
+                               folder = mh_xstrdup(expandfol(cp));
                } else {
                        adios(EX_USAGE, NULL, "usage: %s [+folder] [switches]",
                                        invo_name);
@@ -224,7 +224,7 @@ rma(char *folder)
        struct node *np, *pp;
 
        alen = strlen("atr-");
-       plen = strlen(cp = getcpy(toabsdir(folder))) + 1;
+       plen = strlen(cp = mh_xstrdup(toabsdir(folder))) + 1;
 
        /*
        ** Search context list for keys that look like