fixed error with getBytes in flate stream

This commit is contained in:
sbarman 2011-06-09 15:02:58 -07:00
parent 78493db421
commit 0e8f323f0a

2
pdf.js
View File

@ -329,7 +329,7 @@ var FlateStream = (function() {
getBytes: function(length) {
var pos = this.bufferPos;
while (!this.eof && this.bufferLength < bufferPos + length)
while (!this.eof && this.bufferLength < pos + length)
this.readBlock();
var end = pos + length;