summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2017-01-25 13:01:10 +0100
committerBob Weinand <bobwei9@hotmail.com>2017-01-25 13:01:10 +0100
commitd0272ef1ef262ad4103586bdba468586e33b5f56 (patch)
treea17964dc0880cb229d4fafe7e3a3878994ba7884
parentec78507bd46a05f77dbde3fa4091ab4c91e61cad (diff)
parentc44efbbbb1a1b32ee3756b270f41c7507ee22e3b (diff)
downloadphp-git-d0272ef1ef262ad4103586bdba468586e33b5f56.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
-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 4ae348a463..d6d0f9241e 100644
--- a/sapi/phpdbg/phpdbg_prompt.c
+++ b/sapi/phpdbg/phpdbg_prompt.c
@@ -615,7 +615,7 @@ int phpdbg_compile(void) /* {{{ */
memmove(data->line + 1, data->line, sizeof(uint) * 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(uint));
+ 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;