From c9bc9e4f9095c7eaf197662cfd8e011f5ef32b21 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 8 Apr 2015 13:27:12 +0300 Subject: [PATCH] Remove use of HOST_NAME_MAX, not portable (#40) --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5