From 0e8f323f0ac86c14e9d50082bdae623a37ec9260 Mon Sep 17 00:00:00 2001 From: sbarman Date: Thu, 9 Jun 2011 15:02:58 -0700 Subject: [PATCH] fixed error with getBytes in flate stream --- pdf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.js b/pdf.js index cdc8b6665..c6f9f06e7 100644 --- 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;