OSDN Git Service

resolv: Fix /etc/hosts for more than MAXALIASES aliases
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Apr 2012 15:54:09 +0000 (17:54 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Apr 2012 16:30:34 +0000 (18:30 +0200)
commitdcb6ac13546486099fd1c5fb83771cb69f2a16b7
treeb1958ed524a4c40409afa2c035b8e6bd8ac74288
parent238d11fd33fe85444fffc0cdd1a07cc70466a686
resolv: Fix /etc/hosts for more than MAXALIASES aliases

PR networking/4916

Reserve space for the terminating 0 alias and zero out the
scratch-buffer so the last entry of the alias list is empty.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/resolv.c