Browse Source

Fix return in Buffer::New

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
9d248f690a
  1. 2
      src/node_buffer.cc

2
src/node_buffer.cc

@ -101,6 +101,8 @@ Buffer* Buffer::New(char* data, size_t len) {
Buffer *buffer = ObjectWrap::Unwrap<Buffer>(obj); Buffer *buffer = ObjectWrap::Unwrap<Buffer>(obj);
memcpy(buffer->data_, data, len); memcpy(buffer->data_, data, len);
return buffer;
} }

Loading…
Cancel
Save