From: Tim Kientzle Date: Thu, 4 Mar 2010 06:18:48 +0000 (-0500) Subject: Correct the error message printed for a state failure. X-Git-Tag: v3.0.0a~1166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ebd82d393427700b4265f7f24dbd086422d1e23;p=thirdparty%2Flibarchive.git Correct the error message printed for a state failure. SVN-Revision: 2007 --- diff --git a/libarchive/archive_check_magic.c b/libarchive/archive_check_magic.c index 3b6888b88..b486988f4 100644 --- a/libarchive/archive_check_magic.c +++ b/libarchive/archive_check_magic.c @@ -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.