diff options
-rw-r--r-- | ace/ACE.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp index c280a97c555..25107632f9e 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -717,7 +717,8 @@ ACE::send_n (ACE_HANDLE handle, const void *buf, size_t len) for (bytes_written = 0; bytes_written < len; bytes_written += n) { - n = ACE::send (handle, (const char *) buf + bytes_written, + n = ACE::send (handle, + (const char *) buf + bytes_written, len - bytes_written); if (n == -1) { |