From: Marcus Boerger Date: Wed, 10 Aug 2005 08:36:46 +0000 (+0000) Subject: - MFH estrdup/strndup change (as hinted by Andi) X-Git-Tag: php-5.1.0RC1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bc9bc5de87c6bbafe3df2a24384221cacf35f21;p=php - MFH estrdup/strndup change (as hinted by Andi) --- diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index aa8b9e0a38..d0eda76689 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -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; } /* }}} */