Browse Source

(print_header): Use archive_file_size member when printing real file size.

uid65697 21 years ago
parent
commit
50b2227279
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/list.c

+ 2 - 1
src/list.c

@@ -1096,7 +1096,8 @@ print_header (struct tar_stat_info *st, off_t block_ordinal)
 		   uintbuf));
 	  break;
 	default:
-	  strcpy (size, STRINGIFY_BIGINT (st->stat.st_size, uintbuf));
+	  /* st->stat.st_size keeps stored file size */
+	  strcpy (size, STRINGIFY_BIGINT (st->archive_file_size, uintbuf));
 	  break;
 	}