Null terminate the out2 string passed as filter2 to log.Restat

This commit is contained in:
yydevelop 2020-04-14 19:58:58 -05:00
parent 7c556be510
commit 5fa5f1c15c

View File

@ -252,7 +252,7 @@ TEST_F(BuildLogTest, Restat) {
ASSERT_EQ(3, e->mtime);
TestDiskInterface testDiskInterface;
char out2[] = { 'o', 'u', 't', '2' };
char out2[] = { 'o', 'u', 't', '2', 0 };
char* filter2[] = { out2 };
EXPECT_TRUE(log.Restat(kTestFilename, testDiskInterface, 1, filter2, &err));
ASSERT_EQ("", err);