diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2017-01-25 13:01:48 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2017-01-25 13:01:48 +0100 |
commit | d4dd540233012f9379313a4611f805c41fbf2d50 (patch) | |
tree | 46bdc5f039ef86d4ef106c2d15ca65a0a85e1e1f /sapi/phpdbg/phpdbg_prompt.c | |
parent | e7166d170833319b2f1e5e5808191c440206651b (diff) | |
parent | d0272ef1ef262ad4103586bdba468586e33b5f56 (diff) | |
download | php-git-d4dd540233012f9379313a4611f805c41fbf2d50.tar.gz |
Merge branch 'PHP-7.1'
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 2 |
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; |