mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 15:50:26 +08:00
Mark Mentovai
6dbf952678
mac: Interpret the size returned by _NSGetExecutablePath() correctly
_NSGetExecutablePath() returns a buffer size including space for the trailing NUL byte. A std::string’s length should be one less than this, because the std::string’s length does not include the trailing NUL byte that is guaranteed to be present. Change-Id: I46b8a68979beda7dc5de09d0eef6f1d3d6a78ecf Reviewed-on: https://chromium-review.googlesource.com/354100 Reviewed-by: Robert Sesek <rsesek@chromium.org>
Description
Languages
C++
92.6%
Objective-C++
2.5%
C
2%
Python
1.7%
Assembly
0.9%
Other
0.3%