Silence "warning C4996: 'strcpy': This function or variable may be unsafe." on MSVC

This commit is contained in:
carterl 2015-02-15 09:03:49 +01:00
parent 9b80e75b05
commit a243548cec

View File

@ -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) {