You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by vk...@apache.org on 2004/10/13 22:14:37 UTC
cvs commit: ws-axis/c/src/transport/axis AxisTransport.cpp
vk 2004/10/13 13:14:37
Modified: c/src/transport/axis AxisTransport.cpp
Log:
Fix problem reading messages larger then 2048
Revision Changes Path
1.38 +5 -4 ws-axis/c/src/transport/axis/AxisTransport.cpp
Index: AxisTransport.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/transport/axis/AxisTransport.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- AxisTransport.cpp 9 Sep 2004 11:42:04 -0000 1.37
+++ AxisTransport.cpp 13 Oct 2004 20:14:37 -0000 1.38
@@ -197,7 +197,7 @@
AXIS_TRANSPORT_STATUS AxisTransport::getBytes(char* pcBuffer, int* pSize)
{
- if (0 <= m_iBytesLeft)
+ if (0 >= m_iBytesLeft)
{
try
{
@@ -222,12 +222,13 @@
}
if (m_pcReceived)
{
- int iToCopy = (*pSize < m_iBytesLeft) ? *pSize : m_iBytesLeft;
+ int iToCopy = (*pSize < m_iBytesLeft) ? *pSize : m_iBytesLeft;
strncpy(pcBuffer, m_pcReceived, iToCopy);
- m_iBytesLeft -= iToCopy;
- m_pcReceived += iToCopy;
+ m_iBytesLeft -= iToCopy;
+ m_pcReceived += iToCopy;
*pSize = iToCopy;
return TRANSPORT_IN_PROGRESS;
+
}
else
{