com php-src: use portable strndup implementation: sapi/phpdbg/phpdbg.c

From: Date: Wed, 29 Oct 2014 18:49:20 +0000
Subject: com php-src: use portable strndup implementation: sapi/phpdbg/phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82877@lists.php.net to get a copy of this message
Commit: 4b8f411d313bddb0c1cd9308a7402ea20fb348b4 Author: Anatol Belski <ab@php.net> Wed, 29 Oct 2014 19:49:20 +0100 Parents: f842b8f4be9350dfd0444633c62fe7a5c76c54a5 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4b8f411d313bddb0c1cd9308a7402ea20fb348b4 Log: use portable strndup implementation Changed paths: M sapi/phpdbg/phpdbg.c Diff: diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 5ebc203..7ca7997 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -549,7 +549,7 @@ static int php_sapi_phpdbg_deactivate(TSRMLS_D) /* {{{ */ php_phpdbg_globals_ctor(pg); - pg->exec = strndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); + pg->exec = zend_strndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); pg->exec_len = PHPDBG_G(exec_len); pg->oplog = PHPDBG_G(oplog); pg->prompt[0] = PHPDBG_G(prompt)[0];

« previous php.cvs (#82877) next »