MAX_HOSTNAMELEN
if ((wcslen(mp) > MAX_HOSTNAMELEN) ||
wchar_t local_host[MAX_HOSTNAMELEN + 1];
char local_host_mb[MAX_HOSTNAMELEN + 1] = "";