From: Sascha Schumann Date: Wed, 17 May 2000 17:04:46 +0000 (+0000) Subject: Fix build against recent thttpd versions X-Git-Tag: php-4.0.0~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a4d185637d7e1fb0903df635e73dc451e3649c6;p=php Fix build against recent thttpd versions --- diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index f1a6e63e02..9912e5fe80 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -172,7 +172,7 @@ static void thttpd_hash_environment(void) snprintf(buf, BUF_SIZE, "/%s", TG(hc)->origfilename); ADD_STRING("SCRIPT_NAME"); - strncpy(buf, inet_ntoa(TG(hc)->client_addr), BUF_SIZE); + strncpy(buf, inet_ntoa(TG(hc)->client_addr.sa_in.sin_addr), BUF_SIZE); ADD_STRING("REMOTE_ADDR"); ADD_STRING("REMOTE_HOST");