diff options
author | Pavel Labath <labath@google.com> | 2016-01-19 21:28:44 -0500 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2016-01-19 21:28:44 -0500 |
commit | 48673cdb8c0c1e9eb137c7a68583b5e5898a54eb (patch) | |
tree | b2f921fce6dff6b898f6ca23468bc05f00e93354 /src/processor/symbolic_constants_win.cc | |
parent | breakpad: fix unittest failure when building with clang. (diff) | |
download | breakpad-48673cdb8c0c1e9eb137c7a68583b5e5898a54eb.tar.xz |
Fix usage of snprintf for MSVC
Older versions of MSVC don't have a snprintf functions. Some files
were already working around that, but not all of them. Instead of
copying the logic into every file, I centralize it into a new
stdio.h wrapper file and make other files include that.
BUG=
R=mark@chromium.org
Review URL: https://codereview.chromium.org/1602563003 .
Patch from Pavel Labath <labath@google.com>.
Diffstat (limited to 'src/processor/symbolic_constants_win.cc')
-rw-r--r-- | src/processor/symbolic_constants_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/processor/symbolic_constants_win.cc b/src/processor/symbolic_constants_win.cc index 333aa041..adb0cc0a 100644 --- a/src/processor/symbolic_constants_win.cc +++ b/src/processor/symbolic_constants_win.cc @@ -33,9 +33,9 @@ // // Author: Ben Wagner -#include <cstdio> #include <string> +#include "common/stdio.h" #include "google_breakpad/common/breakpad_types.h" #include "google_breakpad/common/minidump_exception_win32.h" #include "processor/symbolic_constants_win.h" @@ -6406,7 +6406,7 @@ std::string NTStatusToString(uint32_t ntstatus) { break; default: { char reason_string[11]; - std::snprintf(reason_string, sizeof(reason_string), "0x%08x", ntstatus); + snprintf(reason_string, sizeof(reason_string), "0x%08x", ntstatus); reason = reason_string; break; } |