From: Marko Kreen Date: Wed, 8 Apr 2015 10:27:12 +0000 (+0300) Subject: Remove use of HOST_NAME_MAX, not portable (#40) X-Git-Tag: pgbouncer_1_6~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9bc9e4f9095c7eaf197662cfd8e011f5ef32b21;p=pgbouncer Remove use of HOST_NAME_MAX, not portable (#40) --- diff --git a/src/util.c b/src/util.c index 8b5ebee..9fc1686 100644 --- a/src/util.c +++ b/src/util.c @@ -414,7 +414,7 @@ const char *pga_str(const PgAddr *a, char *dst, int dstlen) static const char *cached_hostname(void) { - static char cache[HOST_NAME_MAX + 1]; + static char cache[256]; int err; if (cache[0] == 0) {