summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-06-25 14:30:24 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-06-25 14:30:24 +0200
commita1479fbbd9d4ad53fb6b0ed027548ea078558f5b (patch)
tree5f5c21e6361c7641b6c328991adf1f09a8f55926 /sapi/phpdbg/phpdbg_prompt.c
parent065559828022b37e88fc8eae4194efafea1b1506 (diff)
parent0f3ca15bb787fd977a5875c456c2133e86bdd143 (diff)
downloadphp-git-a1479fbbd9d4ad53fb6b0ed027548ea078558f5b.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r--sapi/phpdbg/phpdbg_prompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c
index bd6f7349ac..3a96898066 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -838,7 +838,7 @@ PHPDBG_COMMAND(run) /* {{{ */
while (*p == ' ') p++;
while (*p) {
char sep = ' ';
- char *buf = emalloc(end - p + 1), *q = buf;
+ char *buf = emalloc(end - p + 2), *q = buf;
if (*p == '<') {
/* use as STDIN */