commit | 1d21e0a28edef4bf116e904d3c25659c4658aaf0 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Mar 12 21:58:54 2010 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Mar 12 21:58:54 2010 +0100 |
tree | 387e70af862a81237006646eaac7c145c3b20e15 | |
parent | 78caf8449d29589ae9dfce968b00eab804889f73 [diff] |
[MINOR] force null-termination of hostname Marcello Gorlani reported that at least on FreeBSD, a long hostname was reported with garbage on the stats page. POSIX does not make it mandatory for gethostname() to NULL-terminate the string in case of truncation, and at least FreeBSD appears not to do it. So let's force null-termination to keep safe.