X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fcomp.c;h=c34ce43f07d4c0e380c371bc6e8d7991d344c822;hp=159d7e76122e7b286e61210984de7157ed53e737;hb=9cf6132a6ea29968131a000bc2fb6860affac45e;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/uip/comp.c b/uip/comp.c index 159d7e7..c34ce43 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -100,7 +100,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 (msg) { @@ -111,7 +111,7 @@ main(int argc, char **argv) } } - cwd = getcpy(pwd()); + cwd = mh_xstrdup(pwd()); if (form && (folder || msg)) { adios(EX_USAGE, NULL, "can't mix forms and folders/msgs"); @@ -151,7 +151,7 @@ main(int argc, char **argv) if (mp->numsel > 1) { adios(EX_USAGE, NULL, "only one message at a time!"); } - if ((in = open(form = getcpy(m_name(mp->lowsel)), + if ((in = open(form = mh_xstrdup(m_name(mp->lowsel)), O_RDONLY)) == NOTOK) { adios(EX_IOERR, form, "unable to open message"); }