diff options
author | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2008-02-04 20:50:07 +0000 |
---|---|---|
committer | ted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2008-02-04 20:50:07 +0000 |
commit | c1e0783204d2787932e4f1d6855866ad57209053 (patch) | |
tree | 8ee05d501dc5fe598299838aebdba76807cdcb8d /src/common | |
parent | Remove dependency on ole32 on Windows (#132). Patch by Sorin Jianu <sorinj>,... (diff) | |
download | breakpad-c1e0783204d2787932e4f1d6855866ad57209053.tar.xz |
Use swprintf_s for VC8 or newer. r=mento
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@238 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/windows/string_utils-inl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/windows/string_utils-inl.h b/src/common/windows/string_utils-inl.h index db18124d..6f650812 100644 --- a/src/common/windows/string_utils-inl.h +++ b/src/common/windows/string_utils-inl.h @@ -56,6 +56,10 @@ // _snwprintf when using older CRTs. #if _MSC_VER < 1400 // MSVC 2005/8 #define swprintf _snwprintf +#else +// For MSVC8 and newer, swprintf_s is the recommended method. Conveniently, +// it takes the same argument list as swprintf. +#define swprintf swprintf_s #endif // MSC_VER < 1400 namespace google_breakpad { |