1
0
Fork 0
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:
Kevin Kwok 2015-06-14 14:45:20 -04:00 committed by Jeff Schiller
parent f460784a48
commit e88bfbe15e

View file

@ -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);
}