summaryrefslogtreecommitdiff
path: root/ace/Local_Name_Space_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Local_Name_Space_T.cpp')
-rw-r--r--ace/Local_Name_Space_T.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ace/Local_Name_Space_T.cpp b/ace/Local_Name_Space_T.cpp
index 09bd0a74d6f..7f38466e3d5 100644
--- a/ace/Local_Name_Space_T.cpp
+++ b/ace/Local_Name_Space_T.cpp
@@ -318,8 +318,7 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, ACE_LOCK>::resolve_i (const ACE_WString &na
char [len + 1],
-1);
- ACE_OS::strsncpy (new_type, temp, len);
- new_type[len] = '\0'; // Null terminate the string
+ ACE_OS::strsncpy (new_type, temp, len + 1);
type = new_type;
return 0;
}