Fix the number of copied bytes in memmove (#1698)

Fixes #1634

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka
2017-03-30 10:40:05 +02:00
committed by László Langó
parent 20466a7637
commit 3ff9a7de8a
2 changed files with 3 additions and 1 deletions
@@ -398,7 +398,7 @@ ecma_builtin_number_prototype_object_to_string (ecma_value_t this_arg, /**< this
/* Place radix point to the required position. */
if (point < buff_index)
{
memmove (buff + point + 1, buff + point, (size_t) buff_index);
memmove (buff + point + 1, buff + point, (size_t) (buff_index - point));
buff[point] = '.';
buff_index++;
}