Skip to content

Commit

Permalink
Fix a nasty bug where large documents broke everything.
Browse files Browse the repository at this point in the history
  • Loading branch information
creationix committed Jul 1, 2010
1 parent a7e2eb7 commit 5a726ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function nStore(filename) {
var meta = JSON.parse(input.slice(mid, i).toString());
var info = {
meta: meta,
position: pos,
position: base + pos,
length: mid - pos - 1
};
if (info.length > 0) {
Expand Down

0 comments on commit 5a726ac

Please sign in to comment.