summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string_test.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-12-27 13:55:15 -0500
committerMathias Stearn <mathias@10gen.com>2014-01-29 19:03:04 -0500
commit71de42f9467449e35016b3ba59b5149ba7c6e3c0 (patch)
tree32699dfda02fa5caa0969ee284f8ad561a64e6ad /src/mongo/db/namespace_string_test.cpp
parente97ed96f1726248d826d29feaf7fbaa5ec01ec9a (diff)
downloadmongo-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.cpp2
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] );