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:
committed by
László Langó
parent
20466a7637
commit
3ff9a7de8a
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user