diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-04-04 16:13:55 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-04-04 16:13:55 +0000 |
commit | 30fc9ce1c0e671d7a4234ea70f7ed3906c627659 (patch) | |
tree | eb28595f93fd166dc1137fcedecee1bd0b5951a0 /src/tools/windows | |
parent | Discard age field in the dumped symbol file. (diff) | |
download | breakpad-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/tools/windows')
-rw-r--r-- | src/tools/windows/symupload/symupload.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/windows/symupload/symupload.cc b/src/tools/windows/symupload/symupload.cc index 54abf73a..e2ec640e 100644 --- a/src/tools/windows/symupload/symupload.cc +++ b/src/tools/windows/symupload/symupload.cc @@ -97,8 +97,10 @@ static bool GetFileVersionString(const wchar_t *filename, wstring *version) { file_info->dwFileVersionMS & 0xffff, file_info->dwFileVersionLS >> 16, file_info->dwFileVersionLS & 0xffff); - GB_WSU_SAFE_SWPRINTF_TERMINATE(ver_string, - sizeof(ver_string) / sizeof(ver_string[0])); + + // remove when VC++7.1 is no longer supported + ver_string[sizeof(ver_string) / sizeof(ver_string[0]) - 1] = L'\0'; + *version = ver_string; return true; } |