X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhshow.c;h=be9cd45448109e71f27c571d31e2351391cf8c86;hp=dc5c2020b4d2dac22ed214488e69f1523dba3012;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/uip/mhshow.c b/uip/mhshow.c index dc5c202..be9cd45 100644 --- a/uip/mhshow.c +++ b/uip/mhshow.c @@ -42,6 +42,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; /* mhparse.c */ extern char *tmp; /* directory to place temp files */ @@ -166,7 +167,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 FORMSW: @@ -175,7 +176,7 @@ main(int argc, char **argv) argp[-2]); if (formsw) mh_free0(&formsw); - formsw = getcpy(etcpath(cp)); + formsw = mh_xstrdup(etcpath(cp)); continue; case VERBSW: @@ -193,7 +194,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 if (mode != SHOW) { adios(EX_USAGE, NULL, "Either call show as `%s' or give message arguments", invo_name); } else { @@ -240,7 +241,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!");