Use strdup consistently
Use strdup consistently

Fixes a bug introduced in #27 which, under certain circumstances, would have invoked free() on something that wasn't malloc()ed.
troglobit/mdnsd,troglobit/mdnsd