From 71de42f9467449e35016b3ba59b5149ba7c6e3c0 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Fri, 27 Dec 2013 13:55:15 -0500 Subject: SERVER-7282 Clean up namespace name length checks --- src/mongo/db/namespace_string_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/namespace_string_test.cpp') diff --git a/src/mongo/db/namespace_string_test.cpp b/src/mongo/db/namespace_string_test.cpp index 9b719fa3dba..b3154de2588 100644 --- a/src/mongo/db/namespace_string_test.cpp +++ b/src/mongo/db/namespace_string_test.cpp @@ -142,7 +142,7 @@ namespace mongo { } TEST( NamespaceStringTest, nsToDatabase2 ) { - char buf[128]; + char buf[MaxDatabaseNameLen]; nsToDatabase( "foo.bar", buf ); ASSERT_EQUALS( 'f', buf[0] ); -- cgit v1.2.1