mirror of
https://github.com/reactos/ninja.git
synced 2024-11-23 11:49:45 +00:00
Null terminate the out2 string passed as filter2 to log.Restat
This commit is contained in:
parent
7c556be510
commit
5fa5f1c15c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user