From d4ce0c8adce3e821bf77574d94580198ab989c7f Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Sun, 29 Nov 2009 15:37:43 -0500 Subject: [PATCH] Fix an embarrassing typo that prevented the display of the expected file contents when a file was unexpectedly empty. SVN-Revision: 1684 --- tar/test/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3