From 30fc9ce1c0e671d7a4234ea70f7ed3906c627659 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Wed, 4 Apr 2007 16:13:55 +0000 Subject: 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 --- src/client/windows/handler/exception_handler.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/client') diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc index 5ddb6c8f..ba14e4d2 100644 --- a/src/client/windows/handler/exception_handler.cc +++ b/src/client/windows/handler/exception_handler.cc @@ -477,7 +477,10 @@ void ExceptionHandler::UpdateNextID() { wchar_t minidump_path[MAX_PATH]; swprintf(minidump_path, MAX_PATH, L"%s\\%s.dmp", dump_path_c_, next_minidump_id_c_); - GB_WSU_SAFE_SWPRINTF_TERMINATE(minidump_path, MAX_PATH); + + // remove when VC++7.1 is no longer supported + minidump_path[MAX_PATH - 1] = L'\0'; + next_minidump_path_ = minidump_path; next_minidump_path_c_ = next_minidump_path_.c_str(); } -- cgit v1.2.1