diff options
author | Adam Mitz <mitza@objectcomputing.com> | 2019-03-15 14:31:29 -0500 |
---|---|---|
committer | Adam Mitz <mitza@objectcomputing.com> | 2019-03-15 14:31:29 -0500 |
commit | eecabf923c03c6848cf49945b0df1e3f89433139 (patch) | |
tree | 58561c20faf23c576bc8ab06a995df4ef7877a9b /ACE/tests | |
parent | 9aecdfe5080f18edaf60fe19c96116dea7951870 (diff) | |
download | ATCD-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.cpp | 2 |
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, |