]> granicus.if.org Git - gc/commitdiff
2007-06-06 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Wed, 6 Jun 2007 20:04:43 +0000 (20:04 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:40 +0000 (21:06 +0400)
* msvc_dbg.c(GetModuleBase): Replace strcat with strcat_s.

ChangeLog
msvc_dbg.c

index babc90ea2aa8cfc3ca53226633139a0bcc726682..a7f68ac0b8097e06e8efdaf6bc6d27d6786787f0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-06-06  Hans Boehm <Hans.Boehm@hp.com>
+
+       * msvc_dbg.c(GetModuleBase): Replace strcat with strcat_s.
+
 2007-06-06  Hans Boehm <Hans.Boehm@hp.com>
        
        * include/gc.h: (GC_word, GC_signed_word): Fix win64 definitions.
index 82e0de6e19d254900fe0fa5e684df66f2b5ca66d..e77a669301660569399e79e3bfc4f7377211cc2b 100644 (file)
@@ -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);