diff options
author | Jim Meyering <jim@meyering.net> | 2000-07-08 21:48:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-07-08 21:48:07 +0000 |
commit | 1c0d7dc343e0f293693e93f57a41ba9bfa92ea69 (patch) | |
tree | eed213bd39418e6ad54cb9b0ba58fdc243d92b55 /lib/strstr.c | |
parent | a9b33f62e14d2fa44e77d44d5a27ac5703956c51 (diff) | |
download | gnulib-1c0d7dc343e0f293693e93f57a41ba9bfa92ea69.tar.gz |
(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.
Diffstat (limited to 'lib/strstr.c')
0 files changed, 0 insertions, 0 deletions