Index: test/cctest/test-log.cc |
diff --git a/test/cctest/test-log.cc b/test/cctest/test-log.cc |
index 780a01617caa1405abae96ea9ce0313393fa4c87..aca9492b0461b847f01f199cdfd2679bd99a0865 100644 |
--- a/test/cctest/test-log.cc |
+++ b/test/cctest/test-log.cc |
@@ -57,6 +57,7 @@ TEST(GetMessages) { |
memset(log_lines, 0, sizeof(log_lines)); |
// A bit more than the first line length. |
CHECK_EQ(line_1_len, Logger::GetLogLines(0, log_lines, line_1_len + 3)); |
+ log_lines[line_1_len] = '\0'; |
CHECK_EQ(line_1, log_lines); |
memset(log_lines, 0, sizeof(log_lines)); |
const char* line_2 = "cccc,\"dddd\"\n"; |