From bf974b9b1cbcb71f37ad72215d1427b614bae00e Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Mon, 24 Apr 2023 10:26:24 +0200 Subject: [PATCH] test_suite_pkwrite: replace memcpy with memmove Signed-off-by: Valerio Setti --- tests/suites/test_suite_pkwrite.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_pkwrite.function b/tests/suites/test_suite_pkwrite.function index 7cc845ace..c0c5ad0b6 100644 --- a/tests/suites/test_suite_pkwrite.function +++ b/tests/suites/test_suite_pkwrite.function @@ -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'; }