test_suite_pkwrite: replace memcpy with memmove
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
547b3a4ab5
commit
bf974b9b1c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ static void fix_new_lines(unsigned char *in_str, size_t *len)
|
|||
if (in_str[i] == '\r') {
|
||||
if (i < (*len - 1)) {
|
||||
chars_left = *len - i - 1;
|
||||
memcpy(&in_str[i], &in_str[i+1], chars_left);
|
||||
memmove(&in_str[i], &in_str[i+1], chars_left);
|
||||
} else {
|
||||
in_str[i] = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue