]> git.marmaro.de Git - mmh/blobdiff - uip/mhbuild.c
mhbuild: Fixed order of file names in error messages.
[mmh] / uip / mhbuild.c
index 113ff38839452e23fb42dfeff3b8116e10b2c348..b22c137dad0ecc2d0ff294ddb040466dacca248f 100644 (file)
@@ -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);
        }