test-netdb.c
Andreas Jaeger
aj@suse.de
Mon Aug 27 06:10:00 GMT 2001
Ulrich told me privatly that using a dynamic buffer for gethostname in
test-netdb.c is broken.
Roland, why did you make this change? According to the Austin Draft
the previous version was fine. The only change might be to use
HOST_NAME_MAX instead of MAXHOSTNAMELEN.
On a Linux system gethostname (NULL, 0) will return 0 without setting
ENAMETOOLONG,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list