diff --git a/EXmDNS.cpp b/EXmDNS.cpp index 09a3391..14e824b 100644 --- a/EXmDNS.cpp +++ b/EXmDNS.cpp @@ -75,7 +75,7 @@ int MDNS::begin(const IPAddress& ip, char* name) { // delay(100); _ipAddress = ip; - _name = (char *)malloc(strlen(name +2)); + _name = (char *)malloc(strlen(name)+2); byte n; for(n = 0; n