felipe          Thu Jan  8 17:19:08 2009 UTC

  Modified files:              
    /php-src/ext/standard       dns.c 
  Log:
  - 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.101&r2=1.102&diff_format=u
Index: php-src/ext/standard/dns.c
diff -u php-src/ext/standard/dns.c:1.101 php-src/ext/standard/dns.c:1.102
--- php-src/ext/standard/dns.c:1.101    Tue Jan  6 23:51:03 2009
+++ php-src/ext/standard/dns.c  Thu Jan  8 17:19:08 2009
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dns.c,v 1.101 2009/01/06 23:51:03 pajoye Exp $ */
+/* $Id: dns.c,v 1.102 2009/01/08 17:19:08 felipe Exp $ */
 
 /* {{{ includes */
 #include "php.h"
@@ -470,7 +470,7 @@
                                tp[dlen] = '\0';
                                cp += dlen;
 
-                               add_ascii_assoc_rt_stringl(*subarray, "txt", 
tp, dlen, ZSTR_AUTOFREE);
+                               add_ascii_assoc_rt_stringl(*subarray, "txt", 
tp, dlen - 1, ZSTR_AUTOFREE);
                        }
                        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