From ececd92f62782af3ec82fe7f9132f971d173905f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 5 Sep 2010 21:09:33 -0700 Subject: [PATCH] Fix base64 write for buffers --- src/node_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();