From daca48cb158b0ff79d33e67fcdcfed8e3adf2f34 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 30 Oct 2014 12:20:08 -0700 Subject: [PATCH] Fix MSVC build --- test/util-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util-test.cc b/test/util-test.cc index 017ac9d8..d7d6d73a 100644 --- a/test/util-test.cc +++ b/test/util-test.cc @@ -700,7 +700,7 @@ void test_count_digits() { TEST(UtilTest, StringRef) { char space[100]; - snprintf(space, sizeof(space), "some string"); + std::strcpy(space, "some string"); EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size()); }