summaryrefslogtreecommitdiff
path: root/ACE/tests/FlReactor_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/FlReactor_Test.cpp')
-rw-r--r--ACE/tests/FlReactor_Test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/tests/FlReactor_Test.cpp b/ACE/tests/FlReactor_Test.cpp
index e108901972a..6236d229d83 100644
--- a/ACE/tests/FlReactor_Test.cpp
+++ b/ACE/tests/FlReactor_Test.cpp
@@ -175,7 +175,7 @@ Connection_Handler::open (void*)
from.addr_to_string (buf, bufsiz, 0);
static char msg[256];
- ACE_OS::sprintf (msg, "connection from <%s>\n",
+ ACE_OS::snprintf (msg, 256, "connection from <%s>\n",
ACE_TEXT_ALWAYS_CHAR (buf));
this->box_->label (msg);
@@ -258,7 +258,7 @@ int run_main (int argc, ACE_TCHAR *argv[])
address.addr_to_string (buf, bufsiz, 0);
char msg[2 * bufsiz];
- ACE_OS::sprintf (msg, "Listening on <%s>\n",
+ ACE_OS::snprintf (msg, 2 * bufsiz, "Listening on <%s>\n",
ACE_TEXT_ALWAYS_CHAR (buf));
box->label (msg);