diff options
author | Mathias Stearn <mathias@10gen.com> | 2013-12-27 13:55:15 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-01-29 19:03:04 -0500 |
commit | 71de42f9467449e35016b3ba59b5149ba7c6e3c0 (patch) | |
tree | 32699dfda02fa5caa0969ee284f8ad561a64e6ad /src/mongo/db/namespace_string_test.cpp | |
parent | e97ed96f1726248d826d29feaf7fbaa5ec01ec9a (diff) | |
download | mongo-71de42f9467449e35016b3ba59b5149ba7c6e3c0.tar.gz |
SERVER-7282 Clean up namespace name length checks
Diffstat (limited to 'src/mongo/db/namespace_string_test.cpp')
-rw-r--r-- | src/mongo/db/namespace_string_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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] ); |