diff options
Diffstat (limited to 'lib/fs.js')
-rw-r--r-- | lib/fs.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -508,7 +508,7 @@ ReadFileContext.prototype.read = function() { } else { buffer = this.buffer; offset = this.pos; - length = this.size - this.pos; + length = Math.min(kReadFileBufferLength, this.size - this.pos); } var req = new FSReqWrap(); |