Partly reverted (other strncpy behavior, derp), plus correct sockaddr_len