Index: test/cctest/test-parsing.cc |
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc |
index 82cce5985849ca08fe14a0ba9c7bf351c3b50f98..62314ff5b14c87c41041474475c19cc518a00123 100644 |
--- a/test/cctest/test-parsing.cc |
+++ b/test/cctest/test-parsing.cc |
@@ -2348,11 +2348,12 @@ TEST(TooManyArguments) { |
}; |
using v8::internal::Code; |
- char statement[Code::kMaxArguments * 2]; |
+ char statement[Code::kMaxArguments * 2 + 1]; |
for (int i = 0; i < Code::kMaxArguments; ++i) { |
statement[2 * i] = '0'; |
statement[2 * i + 1] = ','; |
} |
+ statement[Code::kMaxArguments * 2] = 0; |
const char* statement_data[] = { |
statement, |