Unless this call to strncat() is guaranteed through other checks not to truncate the name, it might be good to elicit some sort of error condition if it happens here -- especially since "local" has special meaning in DNS SD.