Commit 23b42007 authored by peter.rybin@gmail.com's avatar peter.rybin@gmail.com

Fix DebugEvaluateWithoutStack test on Windows

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3653 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f9b80f13
......@@ -2202,9 +2202,8 @@ bool GetEvaluateStringResult(char *message, char* buffer, int buffer_size) {
if (pos == NULL) {
return false;
}
Vector<char> buf(buffer, buffer_size);
Vector<char> buf(buffer, buffer_size - 1);
OS::StrNCpy(buf, pos, buffer_size);
buffer[buffer_size - 1] = '\0';
return true;
}
......
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