OSDN Git Service

getproto: increase line buffer size, simlify and fix alias handling
authorNatanael Copa <natanael.copa@gmail.com>
Thu, 14 Oct 2010 06:35:10 +0000 (06:35 +0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 14 Oct 2010 13:00:04 +0000 (15:00 +0200)
commit7b74c6bab0fc39325a5b9a978a3d8ab73009e5d3
treef11b8f91f096f7d047cc89e3a4c695be17920a17
parent3dc83600855e3754a9046495751758624ac5bfb7
getproto: increase line buffer size, simlify and fix alias handling

We increase line buffer size, reduce MAXALIASES and make sure we don't
segfault when there are too manuy aliases in /etc/protocols.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/getproto.c