diff options
author | Anatol Belski <ab@php.net> | 2014-10-29 19:49:20 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-29 19:49:20 +0100 |
commit | 4b8f411d313bddb0c1cd9308a7402ea20fb348b4 (patch) | |
tree | b771bde6efa1271da8af67ddcfacf569d4f98541 | |
parent | f842b8f4be9350dfd0444633c62fe7a5c76c54a5 (diff) | |
download | php-git-4b8f411d313bddb0c1cd9308a7402ea20fb348b4.tar.gz |
use portable strndup implementation
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 5ebc203529..7ca7997297 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]; |