From: Daniel Stenberg Date: Mon, 26 Apr 2004 15:14:19 +0000 (+0000) Subject: NI_MAXHOST is not generally available, we use plain 256 bytes for the hostname X-Git-Tag: curl-7_12_0~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9f2274bd8e027465386b227b47156468e477146;p=curl NI_MAXHOST is not generally available, we use plain 256 bytes for the hostname instead, its only for debug verbose output anyway --- diff --git a/lib/url.c b/lib/url.c index 33048c8b5..fec12c22a 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1893,7 +1893,7 @@ static void verboseconnect(struct connectdata *conn) { struct SessionHandle *data = conn->data; const char *host=NULL; - char addrbuf[NI_MAXHOST]; + char addrbuf[256]; /* Get a printable version of the network address. */ #ifdef ENABLE_IPV6