]> granicus.if.org Git - curl/commitdiff
NI_MAXHOST is not generally available, we use plain 256 bytes for the hostname
authorDaniel Stenberg <daniel@haxx.se>
Mon, 26 Apr 2004 15:14:19 +0000 (15:14 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 26 Apr 2004 15:14:19 +0000 (15:14 +0000)
instead, its only for debug verbose output anyway

lib/url.c

index 33048c8b5fed4f102d11abef33b478cbfc6a3a03..fec12c22affbb3776891db3be5e82c98c33ae1ac 100644 (file)
--- 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