Marcus Meissner : msvcrt: Replaced bad memcpy by strcpy (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Oct 17 13:08:55 CDT 2011


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Oct 17 00:42:28 2011 +0200

msvcrt: Replaced bad memcpy by strcpy (Coverity).

---

 dlls/msvcrt/locale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 6733522..c64e3d9 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -102,7 +102,7 @@ static void remap_synonym(char *name)
     if (!strcasecmp(_country_synonyms[i],name))
     {
       TRACE(":Mapping synonym %s to %s\n",name,_country_synonyms[i+1]);
-      memcpy(name, _country_synonyms[i+1], sizeof(_country_synonyms[i+1]));
+      strcpy(name, _country_synonyms[i+1]);
       return;
     }
   }




More information about the wine-cvs mailing list