We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80a851b commit c44efbbCopy full SHA for c44efbb
sapi/phpdbg/phpdbg_prompt.c
@@ -616,7 +616,7 @@ int phpdbg_compile(void) /* {{{ */
616
memmove(data->line + 1, data->line, sizeof(uint) * data->lines);
617
data->line[0] = 0;
618
data->buf = erealloc(data->buf, data->len + start_line_len);
619
- memmove(data->buf + start_line_len, data->buf, data->len * sizeof(uint));
+ memmove(data->buf + start_line_len, data->buf, data->len);
620
memcpy(data->buf, start_line, start_line_len);
621
efree(start_line);
622
data->len += start_line_len;
0 commit comments