Vitaliy Margolen : winex11: Use memmove for possibly overlapping memory areas.

Alexandre Julliard julliard at winehq.org
Tue May 27 06:03:43 CDT 2008


Module: wine
Branch: master
Commit: ba5f205584ccdef2364c6b608198fd03ac6d0d99
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ba5f205584ccdef2364c6b608198fd03ac6d0d99

Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date:   Mon May 26 23:53:45 2008 -0600

winex11: Use memmove for possibly overlapping memory areas.

---

 dlls/winex11.drv/ime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c
index f478a86..ab94864 100644
--- a/dlls/winex11.drv/ime.c
+++ b/dlls/winex11.drv/ime.c
@@ -535,7 +535,7 @@ static BOOL IME_RemoveFromSelected(HIMC hIMC)
         if (hSelectedFrom[i] == hIMC)
         {
             if (i < hSelectedCount - 1)
-                memcpy(&hSelectedFrom[i], &hSelectedFrom[i+1], (hSelectedCount - i - 1)*sizeof(HIMC));
+                memmove(&hSelectedFrom[i], &hSelectedFrom[i+1], (hSelectedCount - i - 1)*sizeof(HIMC));
             hSelectedCount --;
             return TRUE;
         }




More information about the wine-cvs mailing list