From: hboehm Date: Wed, 6 Jun 2007 20:04:43 +0000 (+0000) Subject: 2007-06-06 Hans Boehm X-Git-Tag: gc7_0~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8a9ac333a5cb33944ec8a4c9c2884c4980c8cd7;p=gc 2007-06-06 Hans Boehm * msvc_dbg.c(GetModuleBase): Replace strcat with strcat_s. --- diff --git a/ChangeLog b/ChangeLog index babc90ea..a7f68ac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-06 Hans Boehm + + * msvc_dbg.c(GetModuleBase): Replace strcat with strcat_s. + 2007-06-06 Hans Boehm * include/gc.h: (GC_word, GC_signed_word): Fix win64 definitions. diff --git a/msvc_dbg.c b/msvc_dbg.c index 82e0de6e..e77a6693 100644 --- a/msvc_dbg.c +++ b/msvc_dbg.c @@ -73,7 +73,7 @@ static ULONG_ADDR CALLBACK GetModuleBase(HANDLE hProcess, ULONG_ADDR dwAddress) // Save and restore current directory around SymLoadModule, see KB article Q189780 GetCurrentDirectoryA(sizeof(curDir), curDir); GetModuleFileNameA(NULL, exePath, sizeof(exePath)); - strcat(exePath, "\\.."); + strcat_s(exePath, sizeof(exePath), "\\.."); SetCurrentDirectoryA(exePath); #ifdef _DEBUG GetCurrentDirectoryA(sizeof(exePath), exePath);