https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9d19f8bf654d4146287b7587238feeabf29327ce

commit 9d19f8bf654d4146287b7587238feeabf29327ce
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Fri Oct 5 17:38:54 2018 +0300
Commit:     Timo Kreuzer <[email protected]>
CommitDate: Thu Feb 2 14:58:08 2023 +0100

    [WINESYNC] msvcrt: Use memmove to copy memory in memcpy_s.
    
    Signed-off-by: Jacek Caban <[email protected]>
    Signed-off-by: Piotr Caban <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id 055ca5e4d9770d4f14e3c157f1288fa6308b86dd by Jacek Caban 
<[email protected]>
---
 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;
 }
 

Reply via email to