summaryrefslogtreecommitdiff
path: root/ACE/tests/Based_Pointer_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Based_Pointer_Test.cpp')
-rw-r--r--ACE/tests/Based_Pointer_Test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/tests/Based_Pointer_Test.cpp b/ACE/tests/Based_Pointer_Test.cpp
index 6c138ef2d3d..c230f4c13ee 100644
--- a/ACE/tests/Based_Pointer_Test.cpp
+++ b/ACE/tests/Based_Pointer_Test.cpp
@@ -301,7 +301,7 @@ mmap_remap_test(void)
for (i= 0; i<3; ++i)
{
ACE_TCHAR store[ MAXPATHLEN + 1 ];
- ACE_OS::sprintf( store, ACE_TEXT("foo%d"), i );
+ ACE_OS::snprintf( store, MAXPATHLEN + 1, ACE_TEXT("foo%d"), i );
ACE_OS::unlink( store );
ACE_NEW_RETURN (alloc[ i ],