]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Correct the error message printed for a state failure.
authorTim Kientzle <kientzle@gmail.com>
Thu, 4 Mar 2010 06:18:48 +0000 (01:18 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 4 Mar 2010 06:18:48 +0000 (01:18 -0500)
SVN-Revision: 2007

libarchive/archive_check_magic.c

index 3b6888b8894c3562ac3e048a0980b331ff516e7e..b486988f423c611bf45044a7cd125a125f2e9f3e 100644 (file)
@@ -136,7 +136,7 @@ __archive_check_magic(struct archive *a, unsigned int magic,
                            " should be in state '%s'",
                            function,
                            write_all_states(states1, a->state),
-                           write_all_states(states2, a->state));
+                           write_all_states(states2, state));
                a->state = ARCHIVE_STATE_FATAL;
 #if ARCHIVE_VERSION_NUMBER < 3000000
                // XXXX This should be identical to the old behavior.