From: Tim Kientzle Date: Sun, 29 Nov 2009 20:37:43 +0000 (-0500) Subject: Fix an embarrassing typo that prevented the display of the expected file contents... X-Git-Tag: v2.8.0~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4ce0c8adce3e821bf77574d94580198ab989c7f;p=thirdparty%2Flibarchive.git Fix an embarrassing typo that prevented the display of the expected file contents when a file was unexpectedly empty. SVN-Revision: 1684 --- diff --git a/tar/test/main.c b/tar/test/main.c index faf0ca1ba..77416da44 100644 --- a/tar/test/main.c +++ b/tar/test/main.c @@ -761,7 +761,7 @@ assertion_file_contents(const void *buff, int s, const char *fpattern, ...) hexdump(contents, buff, n > 512 ? 512 : n, 0); else { logprintf(" File empty, contents should be:\n"); - hexdump(buff, NULL, s > 512 ? 512 : n, 0); + hexdump(buff, NULL, s > 512 ? 512 : s, 0); } failure_finish(test_extra); free(contents);