X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fburst.c;h=12d1f9d408b2809eba2671a4590e54919be933ab;hp=04e5450a403989f72ffbb27e5704b9f606ee35d4;hb=f78e7c6e6e616cc4ff2bee8a726365fafef2d8ce;hpb=7a13a5266a14f1c6a13752db9292cd40c1211fba diff --git a/uip/burst.c b/uip/burst.c index 04e5450..12d1f9d 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -25,6 +25,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + static char delim3[] = "-------"; struct smsg { @@ -88,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; } @@ -117,8 +119,7 @@ main(int argc, char **argv) exit(EX_SOFTWARE); seq_setprev(mp); /* set the previous-sequence */ - smsgs = (struct smsg *) - mh_xcalloc((size_t) (MAXFOLDER + 2), sizeof(*smsgs)); + smsgs = mh_xcalloc(MAXFOLDER + 2, sizeof(*smsgs)); hi = mp->hghmsg + 1; @@ -137,7 +138,7 @@ main(int argc, char **argv) } } - free(smsgs); + mh_free0(&smsgs); context_replace(curfolder, folder); /*