felipe          Thu Jan  8 17:19:50 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /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.5.2.16&r2=1.70.2.7.2.5.2.17&diff_format=u
Index: php-src/ext/standard/dns.c
diff -u php-src/ext/standard/dns.c:1.70.2.7.2.5.2.16 
php-src/ext/standard/dns.c:1.70.2.7.2.5.2.17
--- php-src/ext/standard/dns.c:1.70.2.7.2.5.2.16        Wed Jan  7 13:49:53 2009
+++ php-src/ext/standard/dns.c  Thu Jan  8 17:19:50 2009
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dns.c,v 1.70.2.7.2.5.2.16 2009/01/07 13:49:53 pajoye Exp $ */
+/* $Id: dns.c,v 1.70.2.7.2.5.2.17 2009/01/08 17:19:50 felipe Exp $ */
 
 /* {{{ includes */
 #include "php.h"
@@ -469,7 +469,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

Reply via email to