Seems to make tinysvcmdns work again...

This commit is contained in:
Mke Brady
2014-11-24 22:20:15 +00:00
parent c96840a6b0
commit df88dbd8a6
+3 -1
View File
@@ -49,7 +49,9 @@ static int mdns_tinysvcmdns_register(char *apname, int port) {
}
char hostname[100];
gethostname(hostname, 100);
gethostname(hostname, 100-10); // leave a bit of space for the .local
strcat(hostname,".local");
if (getifaddrs(&ifalist) < 0)
{