Marcus Meissner : msvcrt: Replaced bad memcpy by strcpy (Coverity).
Module: wine Branch: master Commit: 6ca6464cf3c175baa698abffaedce5aa9b6df7a2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ca6464cf3c175baa698abffae... Author: Marcus Meissner <marcus(a)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; } }
participants (1)
-
Alexandre Julliard