Commit 344d68a9 authored by yurys@chromium.org's avatar yurys@chromium.org

This issue was introduced by http://codereview.chromium.org/67266

Review URL: http://codereview.chromium.org/93014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1766 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bfb33b1e
......@@ -2213,8 +2213,9 @@ Message Message::NewOutput(v8::Handle<v8::String> output,
v8::Debug::ClientData* data) {
Vector<uint16_t> text;
if (!output.IsEmpty()) {
text = Vector<uint16_t>::New(output->Length() + 1);
output->Write(text.start());
// Do not include trailing '\0'.
text = Vector<uint16_t>::New(output->Length());
output->Write(text.start(), 0, output->Length());
}
return Message(text, data, false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment