diff --git a/src/RoveComm/RoveCommUDP.cpp b/src/RoveComm/RoveCommUDP.cpp index 6632f1f..aa3412e 100644 --- a/src/RoveComm/RoveCommUDP.cpp +++ b/src/RoveComm/RoveCommUDP.cpp @@ -157,7 +157,7 @@ namespace rovecomm } // Send the packet to the specified IP address and port - if (cIPAddress != "0.0.0.0" && nPort != 0) + if (std::strcmp(cIPAddress, "0.0.0.0") && nPort != 0) { saUDPClientAddr.sin_port = htons(nPort); inet_pton(AF_INET, cIPAddress, &saUDPClientAddr.sin_addr);