diff options
Diffstat (limited to 'TAO/tao/HTTP_Handler.cpp')
-rw-r--r-- | TAO/tao/HTTP_Handler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/HTTP_Handler.cpp b/TAO/tao/HTTP_Handler.cpp index 5c70d7425b9..87d6184c7a2 100644 --- a/TAO/tao/HTTP_Handler.cpp +++ b/TAO/tao/HTTP_Handler.cpp @@ -6,6 +6,7 @@ #include "ace/OS_NS_string.h" #include "ace/OS_NS_strings.h" #include "tao/debug.h" +#include <cstring> TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -87,9 +88,9 @@ TAO_HTTP_Reader::send_request () char mesg [MAX_HEADER_SIZE]; // Check to see if the request is too big - if (MAX_HEADER_SIZE < (ACE_OS::strlen (request_prefix_) + if (MAX_HEADER_SIZE < (std::strlen (request_prefix_) + ACE_OS::strlen (filename_) - + ACE_OS::strlen (request_suffix_) + 4)) + + std::strlen (request_suffix_) + 4)) TAOLIB_ERROR_RETURN((LM_ERROR,"TAO (%P|%t) - HTTP_Reader::send_request, request too large!"), -1); // Create a message to send to the server requesting retrieval of the file |