felipe Thu Jan 8 17:20:21 2009 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard dns.c Log: - MFH: Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record) http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns.c?r1=1.70.2.7.2.8&r2=1.70.2.7.2.9&diff_format=u Index: php-src/ext/standard/dns.c diff -u php-src/ext/standard/dns.c:1.70.2.7.2.8 php-src/ext/standard/dns.c:1.70.2.7.2.9 --- php-src/ext/standard/dns.c:1.70.2.7.2.8 Wed Dec 31 11:17:44 2008 +++ php-src/ext/standard/dns.c Thu Jan 8 17:20:21 2009 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dns.c,v 1.70.2.7.2.8 2008/12/31 11:17:44 sebastian Exp $ */ +/* $Id: dns.c,v 1.70.2.7.2.9 2009/01/08 17:20:21 felipe Exp $ */ /* {{{ includes */ #include "php.h" @@ -487,7 +487,7 @@ tp[dlen] = '\0'; cp += dlen; - add_assoc_stringl(*subarray, "txt", tp, dlen, 0); + add_assoc_stringl(*subarray, "txt", tp, dlen - 1, 0); } break; case DNS_T_SOA:
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php