fix a possible off-by-one when reading /etc/hosts if it doesn't end
authoreric <eric@openbsd.org>
Fri, 29 May 2015 08:49:37 +0000 (08:49 +0000)
committereric <eric@openbsd.org>
Fri, 29 May 2015 08:49:37 +0000 (08:49 +0000)
commitf108579bd268d3b14231a64a6574a6bdf4087760
tree99a3ba19769c09ce9fca1e25fc84ca346b9e8364
parent449bd205f4ea14c95f4b3670ab23c2dbe994a93e
fix a possible off-by-one when reading /etc/hosts if it doesn't end
with a newline.

ok jca@
lib/libc/asr/asr.c
lib/libc/asr/asr_private.h
lib/libc/asr/getaddrinfo_async.c
lib/libc/asr/gethostnamadr_async.c
lib/libc/asr/getnetnamadr_async.c