Fix config parser and netdb
Natanael Copa
natanael.copa at gmail.com
Wed Oct 13 14:05:37 UTC 2010
Hi,
Here are a set of patches which should be applied upon the 3 previous
ones i sent to list.
Those patches fixes getserv{ent,byname,byport}, getnet{ent,byname,byaddr}
and getproto{ent,byname,bynumber} funcs to properly handle long lines.
Rather than try dynamically reallocate the buffer it just takes 256 chars
+ space for token array. I also reduced MAXALIASES from 35 to 8, but I
don't think that will cause any problems. I have never seen anything use
more than 1 alias.
It is possible to reduce the linebuffer size to something lower due to
first patch, but I think it should be more than 80.
Thanks!
More information about the uClibc
mailing list