X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fburst.c;h=09a60d9f180b0eea1b39e59f8bd11fcfda4c591d;hp=28e0e851b5f193155f9eb56d7292f7a683622e7a;hb=93fa896ceb5fbebe2f1f6e6e36419a13f8ffd99f;hpb=72795bfcbe9f7fee8927b1a4942c0230b0f857a8 diff --git a/uip/burst.c b/uip/burst.c index 28e0e85..09a60d9 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include @@ -24,6 +25,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + static char delim3[] = "-------"; struct smsg { @@ -87,7 +90,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 { msgs[msgp++] = cp; } @@ -114,12 +117,8 @@ main(int argc, char **argv) for (msgnum = 0; msgnum < msgp; msgnum++) if (!m_convert(mp, msgs[msgnum])) exit(EX_SOFTWARE); - seq_setprev(mp); /* set the previous-sequence */ - smsgs = (struct smsg *) - mh_xcalloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs)); - if (smsgs == NULL) - adios(EX_OSERR, NULL, "unable to allocate burst storage"); + smsgs = mh_xcalloc(MAXFOLDER + 2, sizeof(*smsgs)); hi = mp->hghmsg + 1; @@ -138,7 +137,7 @@ main(int argc, char **argv) } } - free(smsgs); + mh_free0(&smsgs); context_replace(curfolder, folder); /*