Skip to content

Commit

Permalink
test_suite_pkwrite: replace memcpy with memmove
Browse files Browse the repository at this point in the history
Signed-off-by: Valerio Setti <[email protected]>
  • Loading branch information
valeriosetti committed Apr 24, 2023
1 parent 755582b commit a4d460c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/suites/test_suite_pkwrite.function
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit a4d460c

Please sign in to comment.