X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Finc.c;h=1523a2c37fa678d3f62530f52cbbe855ddd13c15;hp=368bce3fb849098d9a297f66d259cccc39b66a0a;hb=9cf6132a6ea29968131a000bc2fb6860affac45e;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c diff --git a/uip/inc.c b/uip/inc.c index 368bce3..1523a2c 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -198,7 +198,7 @@ main(int argc, char **argv) case AUDSW: if (!(cp = *argp++) || *cp == '-') adios(EX_USAGE, NULL, "missing argument to %s", argp[-2]); - audfile = getcpy(expanddir(cp)); + audfile = mh_xstrdup(expanddir(cp)); continue; case NAUDSW: audfile = NULL; @@ -229,7 +229,7 @@ main(int argc, char **argv) if (!(cp = *argp++) || *cp == '-') adios(EX_USAGE, NULL, "missing argument to %s", argp[-2]); - from = getcpy(expanddir(cp)); + from = mh_xstrdup(expanddir(cp)); /* ** If the truncate file is in default state, @@ -264,7 +264,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 { adios(EX_USAGE, NULL, "usage: %s [+folder] [switches]", invo_name); @@ -431,7 +431,7 @@ main(int argc, char **argv) */ break; } - free(maildir_copy); + mh_free0(&maildir_copy); if (incerr < 0) { /* error */ if (locked) {