Commit 1c0d7dc343e0f293693e93f57a41ba9bfa92ea69

Jim Meyering 2000-07-08T21:48:07

(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.