[PHP-CVS] cvs: php4(PHP_4_2_0) /ext/standard dns.c
by Ilia Alshanetsky other posts by this author
Aug 29 2002 3:59PM messages near this date
[PHP-CVS] cvs: CVSROOT / avail
|
[PHP-CVS] cvs: php4 /ext/standard dns.c
iliaa Thu Aug 29 11:59:54 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/standard dns.c
Log:
Fixed the \0 check in previous patch.
Index: php4/ext/standard/dns.c
diff -u php4/ext/standard/dns.c:1.38.2.1 php4/ext/standard/dns.c:1.38.2.2
--- php4/ext/standard/dns.c:1.38.2.1 Thu Aug 29 11:48:00 2002
+++ php4/ext/standard/dns.c Thu Aug 29 11:59:54 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dns.c,v 1.38.2.1 2002/08/29 15:48:00 iliaa Exp $ */
+/* $Id: dns.c,v 1.38.2.2 2002/08/29 15:59:54 iliaa Exp $ */
/* {{{ includes
*/
@@ -128,7 +128,7 @@
hp = gethostbyaddr((char *) &addr, sizeof(addr), AF_INET);
#endif
- if (!hp || hp-> h_name == NULL || hp->h_name == '\0') {
+ if (!hp || hp-> h_name == NULL || hp->h_name[0] == '\0') {
return estrdup(ip);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|