Skip to content

Commit

Permalink
fix the index of decoded bulk string
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidCai1111 committed Apr 4, 2016
1 parent 4d3d79e commit dae6f62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ exports.parseBuffer = (buffer, start) => {
let bulkStartIndex = result[1]
let bulkLen = parseInt(result[0], 10)
let bulkEndIndex = bulkStartIndex + bulkLen
result[1] = result[1] + bulkLen + 2

if (bulkLen === -1) { // Null
result[0] = null
Expand Down

0 comments on commit dae6f62

Please sign in to comment.