X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpackf.c;h=fe1102c66338af9767b58f1bc127998eba2fcc62;hb=HEAD;hp=c81db88d0d1793d19ed3e193f808ffd1742de584;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;p=mmh diff --git a/uip/packf.c b/uip/packf.c index c81db88..b2726f4 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -23,6 +23,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; int main(int argc, char **argv) @@ -66,7 +67,7 @@ main(int argc, char **argv) if (*cp == '+' || *cp == '@') { if (folder) adios(EX_USAGE, NULL, "only one folder at a time!"); - folder = getcpy(expandfol(cp)); + folder = mh_xstrdup(expandfol(cp)); } else app_msgarg(&msgs, cp); } @@ -94,7 +95,6 @@ main(int argc, char **argv) for (msgnum = 0; msgnum < msgs.size; msgnum++) if (!m_convert(mp, msgs.msgs[msgnum])) exit(EX_USAGE); - seq_setprev(mp); /* set the previous-sequence */ /* copy all the SELECTED messages to stdout */ for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {