mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
restore imcomplete string back
This commit is contained in:
parent
1824a9a38e
commit
4c1e12921a
6
SAM.cpp
6
SAM.cpp
@ -222,6 +222,12 @@ namespace client
|
||||
m_BufferOffset = bytes_transferred - processed;
|
||||
if (processed > 0)
|
||||
memmove (m_Buffer, m_Buffer + processed, m_BufferOffset);
|
||||
else
|
||||
{
|
||||
// restore string back
|
||||
*separator = ' ';
|
||||
*eol = '\n';
|
||||
}
|
||||
}
|
||||
// since it's SAM v1 reply is not expected
|
||||
Receive ();
|
||||
|
Loading…
Reference in New Issue
Block a user