helly           Wed Aug 10 04:36:47 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/spl    php_spl.c 
  Log:
  - MFH estrdup/strndup change (as hinted by Andi)
  
http://cvs.php.net/diff.php/php-src/ext/spl/php_spl.c?r1=1.52.2.1&r2=1.52.2.2&ty=u
Index: php-src/ext/spl/php_spl.c
diff -u php-src/ext/spl/php_spl.c:1.52.2.1 php-src/ext/spl/php_spl.c:1.52.2.2
--- php-src/ext/spl/php_spl.c:1.52.2.1  Tue Aug  9 17:13:04 2005
+++ php-src/ext/spl/php_spl.c   Wed Aug 10 04:36:46 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_spl.c,v 1.52.2.1 2005/08/09 21:13:04 helly Exp $ */
+/* $Id: php_spl.c,v 1.52.2.2 2005/08/10 08:36:46 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
        #include "config.h"
@@ -596,7 +596,7 @@
 
 PHP_RINIT_FUNCTION(spl) /* {{{ */
 {
-       SPL_G(autoload_extensions) = estrdup(".inc,.php");
+       SPL_G(autoload_extensions) = estrndup(".inc,.php", 
sizeof(".inc,.php")-1);
        return SUCCESS;
 } /* }}} */
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to