Browse Source

handle messages with \r\n

pull/1405/head
orignal 5 years ago
parent
commit
db107602bd
  1. 1
      libi2pd_client/SAM.cpp

1
libi2pd_client/SAM.cpp

@ -239,6 +239,7 @@ namespace client @@ -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…
Cancel
Save