mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
handle messages with \r\n
This commit is contained in:
parent
a6558a61a7
commit
db107602bd
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ namespace client
|
|||
char * eol = (char *)memchr (m_Buffer, '\n', bytes_transferred);
|
||||
if (eol)
|
||||
{
|
||||
if (eol > m_Buffer && eol[-1] == '\r') eol--;
|
||||
*eol = 0;
|
||||
char * separator = strchr (m_Buffer, ' ');
|
||||
if (separator)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue