summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-25 04:41:33 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-25 04:41:33 +0000
commitc402e8d66861af8f350a40ebd1e89a05878ac839 (patch)
tree4419703e84da25582f9c44fb1faf6d1c6c5dac91 /performance-tests
parentd7ef9b2f2e12cec9e0f4c5523566fa78af4d1330 (diff)
downloadATCD-c402e8d66861af8f350a40ebd1e89a05878ac839.tar.gz
replaced strlen () calls in character array size with a constant expression
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/Misc/test_naming.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/performance-tests/Misc/test_naming.cpp b/performance-tests/Misc/test_naming.cpp
index 6c32fa71dbf..41e09f541ff 100644
--- a/performance-tests/Misc/test_naming.cpp
+++ b/performance-tests/Misc/test_naming.cpp
@@ -133,7 +133,7 @@ void do_testing (int argc, char *argv[], int light)
{
const char *p = ACE::basename (name_options->process_name (),
ACE_DIRECTORY_SEPARATOR_CHAR);
- char s[ACE_OS::strlen ("light") + ACE_OS::strlen (p) + 1];
+ char s[5 /* strlen ("light") */ + MAXNAMELEN + 1];
ACE_OS::sprintf (s, "light%s", p);
name_options->database (s);
ns_context.open (ACE_Naming_Context::PROC_LOCAL, 1);