summaryrefslogtreecommitdiff
path: root/ACE/tests/SOCK_Dgram_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/SOCK_Dgram_Test.cpp')
-rw-r--r--ACE/tests/SOCK_Dgram_Test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/tests/SOCK_Dgram_Test.cpp b/ACE/tests/SOCK_Dgram_Test.cpp
index 7b4399484c9..0cd5aa57f34 100644
--- a/ACE/tests/SOCK_Dgram_Test.cpp
+++ b/ACE/tests/SOCK_Dgram_Test.cpp
@@ -111,7 +111,7 @@ client (void *arg)
}
else
{
- buf[rcv_siz] = '\0';
+ buf[rcv_siz/sizeof (ACE_TCHAR)] = '\0';
if (ACE_OS::strncmp (buf, TEST_DATA, ACE_OS::strlen (TEST_DATA)))
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("(%P|%t) recv string should be %s; ")