diff options
author | fcolin | 2007-02-01 12:53:52 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 12:53:52 +0000 |
commit | eb8866478a0f97eaa7b9e52259043672da332778 (patch) | |
tree | 63ab25a01a130fb6937e40cd1d6565055e1234af /Ivy | |
parent | 9b22935b0b601fa0ebce1ced5d8eb2c7499eb2a0 (diff) | |
download | ivy-cplusplus-eb8866478a0f97eaa7b9e52259043672da332778.zip ivy-cplusplus-eb8866478a0f97eaa7b9e52259043672da332778.tar.gz ivy-cplusplus-eb8866478a0f97eaa7b9e52259043672da332778.tar.bz2 ivy-cplusplus-eb8866478a0f97eaa7b9e52259043672da332778.tar.xz |
Utilisateur : Fcolin Date : 17/11/05 Heure : 15:08 Archivé dans $/Bus/Ivy Commentaire: nice Bug in nextArg not reentrant routine due to static variable (vss 17)
Diffstat (limited to 'Ivy')
-rw-r--r-- | Ivy/BufferedSocket.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Ivy/BufferedSocket.cxx b/Ivy/BufferedSocket.cxx index 11eecf5..7df2bce 100644 --- a/Ivy/BufferedSocket.cxx +++ b/Ivy/BufferedSocket.cxx @@ -55,6 +55,7 @@ void CBufferedSocket::OnReceive(int nErrorCode) nb_to_read = buffer_size - (current_ptr - buffer );
}
nb = ReceiveFrom( current_ptr, nb_to_read, &addr, &len, 0/*MSG_PARTIAL*/ );
+ ASSERT ( memchr( current_ptr, 0, nb) == NULL );
if ( nb == SOCKET_ERROR )
{
int err = this->GetLastError();
@@ -70,7 +71,6 @@ void CBufferedSocket::OnReceive(int nErrorCode) }
current_ptr += nb;
- //ASSERT( current_ptr < (buffer + buffer_size) );
ptr = buffer;
while ((ptr_sep = (char*)memchr (ptr, separator, current_ptr - ptr )))
{
@@ -78,6 +78,7 @@ void CBufferedSocket::OnReceive(int nErrorCode) //TRACE("message %s\n", ptr );
OnReceive( ptr );
ptr = ++ptr_sep;
+ //ASSERT( ptr < (buffer + buffer_size) );
}
if (ptr < current_ptr )
{ /* recopie ligne incomplete au debut du buffer */
|