diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2020-04-15 07:10:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 07:10:42 (GMT) |
commit | 7d00661c1bc379a7d8f21074445b5acac26a5708 (patch) | |
tree | 9204498603d7d2f746a0064e2bc012c4e929ea80 /src | |
parent | 7c556be51041777e809381a3d79a21ac98fda303 (diff) | |
parent | 5fa5f1c15c48d1eb14406a7ccecb8dc8ac491398 (diff) | |
download | Ninja-7d00661c1bc379a7d8f21074445b5acac26a5708.zip Ninja-7d00661c1bc379a7d8f21074445b5acac26a5708.tar.gz Ninja-7d00661c1bc379a7d8f21074445b5acac26a5708.tar.bz2 |
Merge pull request #1763 from nomadbyte/master
Null terminate the out2 string passed as filter2 to log.Restat
Diffstat (limited to 'src')
-rw-r--r-- | src/build_log_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_log_test.cc b/src/build_log_test.cc index a8b1733..c81f570 100644 --- a/src/build_log_test.cc +++ b/src/build_log_test.cc @@ -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); |