From cabe5bddb45efa15bcace16b60482031f02a06bf Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 30 Oct 2014 08:07:28 -0700 Subject: [PATCH] Fix util-test --- 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 34d382c8..017ac9d8 100644 --- a/test/util-test.cc +++ b/test/util-test.cc @@ -699,7 +699,7 @@ void test_count_digits() { } TEST(UtilTest, StringRef) { - char space[PATH_MAX]; + char space[100]; snprintf(space, sizeof(space), "some string"); EXPECT_EQ(sizeof("some string") - 1, StringRef(space).size()); }