OSDN Git Service

parse_config: discard rest of incomplete line
authorNatanael Copa <natanael.copa@gmail.com>
Thu, 14 Oct 2010 06:35:07 +0000 (06:35 +0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 14 Oct 2010 13:00:00 +0000 (15:00 +0200)
commit6e74339e7d762857579169068b060a4fd3f345c4
tree502b64440eef047216a8dd401fad1d3a8ed13b3e
parentc7c7ea92be00a9b5b48d1243bb75d32390263159
parse_config: discard rest of incomplete line

If line is longer then size of given buffer and buffer is not allocated by
the config parser itself, then discard rest of line.

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