diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 61b210cccef..ddfb1e53984 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -618,7 +618,7 @@ Handle Buffer::Base64Write(const Arguments &args) { } char a, b, c, d; - char* dst = buffer->data(); + char* dst = buffer->data() + offset; const char *src = *s; const char *const srcEnd = src + s.length();