You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/03/29 15:55:04 UTC

svn commit: r389793 - /webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp

Author: dicka
Date: Wed Mar 29 05:54:51 2006
New Revision: 389793

URL: http://svn.apache.org/viewcvs?rev=389793&view=rev
Log:
Fix for AXISCPP-959

It would appear we were not using substring correctly, so instead of getting the message upto position piSize, we taking the message from.

Modified:
    webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp

Modified: webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp?rev=389793&r1=389792&r2=389793&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp (original)
+++ webservices/axis/trunk/c/src/server/simple_axis_server/SimpleAxisTransport.cpp Wed Mar 29 05:54:51 2006
@@ -171,7 +171,7 @@
     {
 		pBuffer[0] = '\0';
 
-		std::string strToSend = m_strReceived.substr( *piSize - 1);
+		std::string strToSend = m_strReceived.substr(0, *piSize - 1);
 
 		strcat( pBuffer, strToSend.c_str());