From: Anatol Belski Date: Wed, 13 May 2015 09:08:15 +0000 (+0200) Subject: ups, it should have used Zend MM X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~42^2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6254184a4ddeb0f3ba022df41a61de2d1c394d1b;p=php ups, it should have used Zend MM --- diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index b44b8859aa..4b8a5636b9 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -207,9 +207,9 @@ PHPAPI const char* php_get_temporary_directory(void) DWORD len = GetTempPath(sizeof(sTemp),sTemp); assert(0 < len); /* should *never* fail! */ if (sTemp[len - 1] == DEFAULT_SLASH) { - PG(php_sys_temp_dir) = zend_strndup(sTemp, len - 1); + PG(php_sys_temp_dir) = estrndup(sTemp, len - 1); } else { - PG(php_sys_temp_dir) = zend_strndup(sTemp, len); + PG(php_sys_temp_dir) = estrndup(sTemp, len); } return PG(php_sys_temp_dir); }