]> git.parisson.com Git - pdf.js.git/commitdiff
fixed error with getBytes in flate stream
authorsbarman <sbarman@L3CWZ5T.(none)>
Thu, 9 Jun 2011 22:02:58 +0000 (15:02 -0700)
committersbarman <sbarman@L3CWZ5T.(none)>
Thu, 9 Jun 2011 22:02:58 +0000 (15:02 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index cdc8b66657cd3b500f2460c2049a10ffd240a180..c6f9f06e75cb722f95cd065423473f138c4f5045 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -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;