summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2017-01-25 13:01:48 +0100
committerBob Weinand <bobwei9@hotmail.com>2017-01-25 13:01:48 +0100
commitd4dd540233012f9379313a4611f805c41fbf2d50 (patch)
tree46bdc5f039ef86d4ef106c2d15ca65a0a85e1e1f /sapi/phpdbg/phpdbg_prompt.c
parente7166d170833319b2f1e5e5808191c440206651b (diff)
parentd0272ef1ef262ad4103586bdba468586e33b5f56 (diff)
downloadphp-git-d4dd540233012f9379313a4611f805c41fbf2d50.tar.gz
Merge branch 'PHP-7.1'
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 4025ad263e..05521016ac 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -612,7 +612,7 @@ int phpdbg_compile(void) /* {{{ */
memmove(data->line + 1, data->line, sizeof(uint32_t) * data->lines);
data->line[0] = 0;
data->buf = erealloc(data->buf, data->len + start_line_len);
- memmove(data->buf + start_line_len, data->buf, data->len * sizeof(uint32_t));
+ memmove(data->buf + start_line_len, data->buf, data->len);
memcpy(data->buf, start_line, start_line_len);
efree(start_line);
data->len += start_line_len;