Fix silly bug.

This commit is contained in:
Jonathan Naylor 2018-03-22 22:08:30 +00:00
parent c54330e414
commit cd6dda2967

View File

@ -86,7 +86,7 @@ unsigned int CNXCoreNetwork::read(unsigned char* data)
in_addr address; in_addr address;
unsigned int port; unsigned int port;
int length = m_socket.read(data, BUFFER_LENGTH, address, port); int length = m_socket.read(buffer, BUFFER_LENGTH, address, port);
if (length <= 0) if (length <= 0)
return 0U; return 0U;