diff options
author | Etienne Le Sueur <elesueur@vmware.com> | 2012-06-09 08:37:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-09 08:37:05 +0200 |
commit | cfc212cdfff27c6a7b9d9743f87c4da70f97558c (patch) | |
tree | 7ef3823bc6904a6b9d27cdf567fb32ecaaf4ed84 | |
parent | f451b2cfe042e3029b73261758b9ab7e956eaa03 (diff) | |
download | busybox-w32-cfc212cdfff27c6a7b9d9743f87c4da70f97558c.tar.gz busybox-w32-cfc212cdfff27c6a7b9d9743f87c4da70f97558c.tar.bz2 busybox-w32-cfc212cdfff27c6a7b9d9743f87c4da70f97558c.zip |
tar: fix 256-bit encoded number decoding
Signed-off-by: Etienne Le Sueur <elesueur@vmware.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/libarchive/get_header_tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c index 80a709144..b168653d8 100644 --- a/archival/libarchive/get_header_tar.c +++ b/archival/libarchive/get_header_tar.c | |||
@@ -84,7 +84,7 @@ static unsigned long long getOctal(char *str, int len) | |||
84 | first >>= 1; /* now 7th bit = 6th bit */ | 84 | first >>= 1; /* now 7th bit = 6th bit */ |
85 | v = first; /* sign-extend 8 bits to 64 */ | 85 | v = first; /* sign-extend 8 bits to 64 */ |
86 | while (--len != 0) | 86 | while (--len != 0) |
87 | v = (v << 8) + (unsigned char) *str++; | 87 | v = (v << 8) + (uint8_t) *++str; |
88 | } | 88 | } |
89 | return v; | 89 | return v; |
90 | } | 90 | } |