From: markus schnalke Date: Thu, 28 Jun 2012 21:45:01 +0000 (+0200) Subject: mhbuild: Fixed order of file names in error messages. X-Git-Tag: mmh-thesis-end~18 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=b5e6b7321a4aa439a32ae448e43343568fa13cbe;p=mmh mhbuild: Fixed order of file names in error messages. (The argument order is: rename(src, dest) and admonish("foo", "%s", "bar") produces: ``bar foo''.) --- diff --git a/uip/mhbuild.c b/uip/mhbuild.c index 113ff38..b22c137 100644 --- a/uip/mhbuild.c +++ b/uip/mhbuild.c @@ -270,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); }