diff --git a/NXDNReflector/NXCoreNetwork.cpp b/NXDNReflector/NXCoreNetwork.cpp index 189ac70..36e1711 100644 --- a/NXDNReflector/NXCoreNetwork.cpp +++ b/NXDNReflector/NXCoreNetwork.cpp @@ -80,7 +80,7 @@ bool CNXCoreNetwork::write(const unsigned char* data, unsigned int len) return m_socket.write(buffer, 102U, m_address, NXCORE_PORT); } -unsigned int CNXCoreNetwork::read(unsigned char* data, unsigned int len) +unsigned int CNXCoreNetwork::read(unsigned char* data) { unsigned char buffer[BUFFER_LENGTH]; diff --git a/NXDNReflector/NXCoreNetwork.h b/NXDNReflector/NXCoreNetwork.h index 99c016d..78c896c 100644 --- a/NXDNReflector/NXCoreNetwork.h +++ b/NXDNReflector/NXCoreNetwork.h @@ -34,7 +34,7 @@ public: bool write(const unsigned char* data, unsigned int len); - unsigned int read(unsigned char* data, unsigned int len); + unsigned int read(unsigned char* data); void close(); diff --git a/NXDNReflector/NXDNNetwork.cpp b/NXDNReflector/NXDNNetwork.cpp index e6d05f2..33b455f 100644 --- a/NXDNReflector/NXDNNetwork.cpp +++ b/NXDNReflector/NXDNNetwork.cpp @@ -102,7 +102,7 @@ unsigned int CNXDNNetwork::read(unsigned char* data, unsigned int length, in_add if (::memcmp(data, "NXDN", 4U) != 0) return 0U; - if (length != 15 && length != 43) + if (len != 15 && len != 43) return 0U; if (m_debug) diff --git a/NXDNReflector/NXDNReflector.cpp b/NXDNReflector/NXDNReflector.cpp index f6d4152..9ef545d 100644 --- a/NXDNReflector/NXDNReflector.cpp +++ b/NXDNReflector/NXDNReflector.cpp @@ -300,7 +300,7 @@ void CNXDNReflector::run() } if (m_nxCoreNetwork != NULL) { - len = m_nxCoreNetwork->read(buffer, 200U); + len = m_nxCoreNetwork->read(buffer); if (len > 0U) { if (current == NULL) { if (!nxCoreActive) {