cvs: php4 /sapi/thttpd/ thttpd.c
| From: | Sascha Schumann | Date: | Wed, 17 May 2000 17:04:46 +0000 |
| Subject: | cvs: php4 /sapi/thttpd/ thttpd.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15131@lists.php.net to get a copy of this message | ||
sas Wed May 17 19:04:46 2000 EDT
Modified files:
/php4/sapi/thttpd thttpd.c
Log:
Fix build against recent thttpd versions
Index: php4/sapi/thttpd/thttpd.c
diff -u php4/sapi/thttpd/thttpd.c:1.11 php4/sapi/thttpd/thttpd.c:1.12
--- php4/sapi/thttpd/thttpd.c:1.11 Sun Feb 20 00:41:27 2000
+++ php4/sapi/thttpd/thttpd.c Wed May 17 19:04:46 2000
@@ -172,7 +172,7 @@
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");