Skip to content

Commit

Permalink
Fix build - due to V8 API change
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 26, 2011
1 parent f1996ff commit 7d38a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ Handle<Value> Buffer::Utf8Write(const Arguments &args) {

if (written > 0 && p[written-1] == '\0' && char_written == length) {
uint16_t last_char;
s->Write(&last_char, length - 1, 1, String::NO_HINTS);
s->Write(&last_char, length - 1, 1, String::NO_OPTIONS);
if (last_char != 0 || written > s->Utf8Length()) {
written--;
}
Expand Down

0 comments on commit 7d38a3b

Please sign in to comment.