X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Frmf.c;h=273477e5fad21566dab03c723a341453afd9b139;hp=64ee68c7f2ce4539630a6305986c4cd58bbc0ee2;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/uip/rmf.c b/uip/rmf.c index 64ee68c..273477e 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -25,6 +25,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + /* ** static prototypes */ @@ -77,7 +79,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 +226,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