make sure provided hostname is null-terminated

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Merge pull request #163 from olafhering/olh-__ni_resolve_reverse_read-bufsize