summaryrefslogtreecommitdiff
path: root/ACE/tests
diff options
context:
space:
mode:
authorAdam Mitz <mitza@objectcomputing.com>2019-03-15 14:31:29 -0500
committerAdam Mitz <mitza@objectcomputing.com>2019-03-15 14:31:29 -0500
commiteecabf923c03c6848cf49945b0df1e3f89433139 (patch)
tree58561c20faf23c576bc8ab06a995df4ef7877a9b /ACE/tests
parent9aecdfe5080f18edaf60fe19c96116dea7951870 (diff)
downloadATCD-eecabf923c03c6848cf49945b0df1e3f89433139.tar.gz
SOCK_Dgram_Test: remove hardcoded buffer length
Fixes wchar
Diffstat (limited to 'ACE/tests')
-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 6e4d49cec06..ff90f748fe5 100644
--- a/ACE/tests/SOCK_Dgram_Test.cpp
+++ b/ACE/tests/SOCK_Dgram_Test.cpp
@@ -140,7 +140,7 @@ client (void *arg)
iovec iov[1];
// Some platforms define iov_base as char* instead of void*.
iov[0].iov_base = (char *)buf;
- iov[0].iov_len = 20;
+ iov[0].iov_len = sizeof buf;
ssize_t rcv_cnt = cli_dgram.recv (iov,
1,