mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-12-23 09:15:45 +00:00
Fix format specifier in proc maps to support 32-bit architectures.
R=ivanpe@chromium.org Review URL: https://codereview.chromium.org/1280853003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1483 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
c4e643dfb4
commit
ffa293221f
|
@ -61,7 +61,7 @@ bool ParseProcMaps(const std::string& input,
|
||||||
// The final %n term captures the offset in the input string, which is used
|
// The final %n term captures the offset in the input string, which is used
|
||||||
// to determine the path name. It *does not* increment the return value.
|
// to determine the path name. It *does not* increment the return value.
|
||||||
// Refer to man 3 sscanf for details.
|
// Refer to man 3 sscanf for details.
|
||||||
if (sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %4c %lx %hhx:%hhx %ld %n",
|
if (sscanf(line, "%lx-%lx %4c %lx %hhx:%hhx %ld %n",
|
||||||
®ion.start, ®ion.end, permissions, ®ion.offset,
|
®ion.start, ®ion.end, permissions, ®ion.offset,
|
||||||
®ion.major_device, ®ion.minor_device, ®ion.inode,
|
®ion.major_device, ®ion.minor_device, ®ion.inode,
|
||||||
&path_index) < 7) {
|
&path_index) < 7) {
|
||||||
|
|
Loading…
Reference in a new issue