From 23b42007c9f3a3c77465b33517278ebd897a93dc Mon Sep 17 00:00:00 2001 From: "peter.rybin@gmail.com" Date: Tue, 19 Jan 2010 15:12:43 +0000 Subject: [PATCH] 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 --- test/cctest/test-debug.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc index cd0da1b87..d03785056 100644 --- a/test/cctest/test-debug.cc +++ b/test/cctest/test-debug.cc @@ -2202,9 +2202,8 @@ bool GetEvaluateStringResult(char *message, char* buffer, int buffer_size) { if (pos == NULL) { return false; } - Vector buf(buffer, buffer_size); + Vector buf(buffer, buffer_size - 1); OS::StrNCpy(buf, pos, buffer_size); - buffer[buffer_size - 1] = '\0'; return true; } -- 2.34.1