Silence "warning C4996: 'strcpy': This function or variable may be unsafe." on MSVC
This commit is contained in:
parent
9b80e75b05
commit
a243548cec
@ -699,9 +699,8 @@ void test_count_digits() {
|
||||
}
|
||||
|
||||
TEST(UtilTest, StringRef) {
|
||||
char space[100];
|
||||
std::strcpy(space, "some string");
|
||||
EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size());
|
||||
char space[100] = "some string";
|
||||
EXPECT_EQ(std::strlen(space), StringRef(space).size());
|
||||
}
|
||||
|
||||
TEST(UtilTest, CountDigits) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user