X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlist.c;h=169ca5012a8aa81b257d4d19a298c71d2ca6ef4e;hp=72dc9ed2485e80582363c40852767ff1a91ca6ff;hb=7af26a5bed6efce10f3e5dd8cd7520420453c4f2;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/uip/mhlist.c b/uip/mhlist.c index 72dc9ed..169ca50 100644 --- a/uip/mhlist.c +++ b/uip/mhlist.c @@ -40,6 +40,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; /* mhparse.c */ extern char *tmp; /* directory to place temp files */ @@ -151,7 +152,7 @@ main(int argc, char **argv) if (!(cp = *argp++) || (*cp == '-' && cp[1])) adios(EX_USAGE, NULL, "missing argument to %s", argp[-2]); - file = *cp == '-' ? cp : getcpy(expanddir(cp)); + file = *cp == '-' ? cp : mh_xstrdup(expanddir(cp)); continue; case VERBSW: @@ -169,7 +170,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 app_msgarg(&msgs, cp); } @@ -188,7 +189,7 @@ main(int argc, char **argv) if ((cp = context_find(nmhstorage)) && *cp) tmp = concat(cp, "/", invo_name, NULL); else - tmp = getcpy(toabsdir(invo_name)); + tmp = mh_xstrdup(toabsdir(invo_name)); if (file && msgs.size) adios(EX_USAGE, NULL, "cannot specify msg and file at same time!"); @@ -229,7 +230,6 @@ main(int argc, char **argv) exit(EX_SOFTWARE); } } - seq_setprev(mp); /* set the previous-sequence */ cts = mh_xcalloc(mp->numsel + 1, sizeof(*cts)); ctp = cts;