From b5e6b7321a4aa439a32ae448e43343568fa13cbe Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Thu, 28 Jun 2012 23:45:01 +0200 Subject: [PATCH] mhbuild: Fixed order of file names in error messages. (The argument order is: rename(src, dest) and admonish("foo", "%s", "bar") produces: ``bar foo''.) --- uip/mhbuild.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.7.10.4