mirror of
https://github.com/codedread/bitjs
synced 2025-10-05 10:29:24 +02:00
fix inability to decode certain files
This commit is contained in:
parent
f460784a48
commit
e88bfbe15e
1 changed files with 1 additions and 1 deletions
2
untar.js
2
untar.js
|
@ -96,7 +96,7 @@ var TarLocalFile = function(bstream) {
|
|||
bstream.readBytes(this.size);
|
||||
|
||||
// Round up to 512-byte blocks.
|
||||
var remaining = 512 - this.size % 512;
|
||||
var remaining = 512 - bstream.ptr % 512;
|
||||
if (remaining > 0 && remaining < 512) {
|
||||
bstream.readBytes(remaining);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue