https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9d19f8bf654d4146287b75...
commit 9d19f8bf654d4146287b7587238feeabf29327ce Author: Timo Kreuzer timo.kreuzer@reactos.org AuthorDate: Fri Oct 5 17:38:54 2018 +0300 Commit: Timo Kreuzer timo.kreuzer@reactos.org CommitDate: Thu Feb 2 14:58:08 2023 +0100
[WINESYNC] msvcrt: Use memmove to copy memory in memcpy_s.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
wine commit id 055ca5e4d9770d4f14e3c157f1288fa6308b86dd by Jacek Caban jacek@codeweavers.com --- sdk/lib/crt/wine/heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/lib/crt/wine/heap.c b/sdk/lib/crt/wine/heap.c index 85a2c81062b..6c1efe1cbc1 100644 --- a/sdk/lib/crt/wine/heap.c +++ b/sdk/lib/crt/wine/heap.c @@ -822,7 +822,7 @@ int CDECL MSVCRT_memcpy_s(void *dest, MSVCRT_size_t numberOfElements, const void return MSVCRT_ERANGE; }
- memcpy(dest, src, count); + memmove(dest, src, count); return 0; }