]> granicus.if.org Git - php/commitdiff
- MFH estrdup/strndup change (as hinted by Andi)
authorMarcus Boerger <helly@php.net>
Wed, 10 Aug 2005 08:36:46 +0000 (08:36 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 10 Aug 2005 08:36:46 +0000 (08:36 +0000)
ext/spl/php_spl.c

index aa8b9e0a388f8591383cfb77f138761b99d3733c..d0eda7668954db315199674b9e16223c0fc5b2c4 100755 (executable)
@@ -596,7 +596,7 @@ PHP_MINIT_FUNCTION(spl)
 
 PHP_RINIT_FUNCTION(spl) /* {{{ */
 {
-       SPL_G(autoload_extensions) = estrdup(".inc,.php");
+       SPL_G(autoload_extensions) = estrndup(".inc,.php", sizeof(".inc,.php")-1);
        return SUCCESS;
 } /* }}} */