(xgethostname): Protect against the SunOS5.5 bug
authorJim Meyering <jim@meyering.net>
Sat, 8 Jul 2000 21:48:07 +0000 (21:48 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Jul 2000 21:48:07 +0000 (21:48 +0000)
commit3f94561e84d2b74a4003036dfec46b8c82d56798
tree3aa2853857d388b31bce04d933563e3b0ff73dd8
parentc85595bddfde2edcf864877aac77d1e14e684dd6
(xgethostname): Protect against the SunOS5.5 bug
by allocating a larger buffer. Test the gethostname return value for
being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
returns an error and ENAMETOOLONG isn't defined.
lib/xgethostname.c