Browse Source

restore imcomplete string back

pull/170/head
orignal 10 years ago
parent
commit
4c1e12921a
  1. 6
      SAM.cpp

6
SAM.cpp

@ -222,6 +222,12 @@ namespace client
m_BufferOffset = bytes_transferred - processed; m_BufferOffset = bytes_transferred - processed;
if (processed > 0) if (processed > 0)
memmove (m_Buffer, m_Buffer + processed, m_BufferOffset); memmove (m_Buffer, m_Buffer + processed, m_BufferOffset);
else
{
// restore string back
*separator = ' ';
*eol = '\n';
}
} }
// since it's SAM v1 reply is not expected // since it's SAM v1 reply is not expected
Receive (); Receive ();

Loading…
Cancel
Save