]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix an embarrassing typo that prevented the display of the expected file contents...
authorTim Kientzle <kientzle@gmail.com>
Sun, 29 Nov 2009 20:37:43 +0000 (15:37 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 29 Nov 2009 20:37:43 +0000 (15:37 -0500)
SVN-Revision: 1684

tar/test/main.c

index faf0ca1bab3759a2cc52870f91cb633a59c6b361..77416da448ac2c7b9f66bed9068ff0ce31004d6c 100644 (file)
@@ -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);