aboutsummaryrefslogtreecommitdiff
path: root/src/common/windows/string_utils-inl.h
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-04 16:13:55 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-04 16:13:55 +0000
commit30fc9ce1c0e671d7a4234ea70f7ed3906c627659 (patch)
treeeb28595f93fd166dc1137fcedecee1bd0b5951a0 /src/common/windows/string_utils-inl.h
parentDiscard age field in the dumped symbol file. (diff)
downloadbreakpad-30fc9ce1c0e671d7a4234ea70f7ed3906c627659.tar.xz
Replace GB_WSU_SAFE_SWPRINTF_TERMINATE with inline code (#145 followup).
r=bryner http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/f77da3d219cf9388 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@140 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/windows/string_utils-inl.h')
-rw-r--r--src/common/windows/string_utils-inl.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/common/windows/string_utils-inl.h b/src/common/windows/string_utils-inl.h
index fd7bc228..ade99792 100644
--- a/src/common/windows/string_utils-inl.h
+++ b/src/common/windows/string_utils-inl.h
@@ -49,19 +49,6 @@
#define WIN_STRING_FORMAT_LL "I64"
#endif // MSC_VER >= 1400
-// When using swprintf, call GB_WSU_SWPRINTF_TERMINATE afterwards using the
-// first two arguments to swprintf. This will ensure that the buffer is
-// 0-terminated. MSVC8's swprintf always 0-terminates the buffer, so the
-// macro is a no-op. This is done in a macro rather than a function
-// because the function approach relies on vswprintf, which is incompatible
-// with some analysis tools.
-#if _MSC_VER >= 1400 // MSVC 2005/8
-#define GB_WSU_SAFE_SWPRINTF_TERMINATE(buffer, count);
-#else // _MSC_VER >= 1400
-#define GB_WSU_SAFE_SWPRINTF_TERMINATE(buffer, count); \
- (buffer)[(count) - 1] = L'\0';
-#endif // _MSC_VER >= 1400
-
namespace google_breakpad {
using std::string;