X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=uip%2Fmhbuild.c;h=b22c137dad0ecc2d0ff294ddb040466dacca248f;hb=b5e6b7321a4aa439a32ae448e43343568fa13cbe;hp=76626dbba9c0de101ea897e65ee00222e098c24e;hpb=5f2b39344cca1086c975d47b730929d8f1904214;p=mmh diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 76626db..b22c137 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -117,9 +117,7 @@ main(int argc, char **argv) done = unlink_done; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ @@ -272,12 +270,12 @@ main(int argc, char **argv) /* Rename composition draft */ snprintf(buffer, sizeof(buffer), "%s.orig", m_backup(compfile)); if (rename(compfile, buffer) == NOTOK) { - adios(compfile, "unable to rename comp draft %s to", buffer); + adios(buffer, "unable to rename draft %s to", compfile); } /* Rename output file to take its place */ if (rename(outfile, compfile) == NOTOK) { - advise(outfile, "unable to rename output %s to", compfile); + advise(compfile, "unable to rename output %s to", outfile); rename(buffer, compfile); done(1); }