Use byte based tar size encoding above 8GB

This commit is contained in:
Patrick Niklaus
2018-04-10 16:55:48 +00:00
committed by Michael Krasnyk
parent e1efa4c6ab
commit 69fa52a010
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ static int header_to_raw(mtar_raw_header_t *rh, const mtar_header_t *h) {
memset(rh, 0, sizeof(*rh));
/* Store size in ASCII octal digits or base-256 formats */
if (sizeof(mtar_size_t) <= 4 || filesize <= (mtar_size_t)0777777777777LL) {
if (sizeof(mtar_size_t) <= 4 || filesize <= (mtar_size_t)077777777777LL) {
#ifdef _MSC_VER
sprintf(rh->size, "%llo", h->size);
#else