aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLiu.andrew.x@gmail.com <Liu.andrew.x@gmail.com>2015-08-12 00:53:39 +0000
committerLiu.andrew.x@gmail.com <Liu.andrew.x@gmail.com>2015-08-12 00:53:39 +0000
commitffa293221fc8410f2612c4e7adedb15381cf0dc9 (patch)
tree02b699d8b9668413979a07f644dfcf41b3d4f374 /src
parentAllow Print() to be called by const instances of MinidumpLinuxMaps and (diff)
downloadbreakpad-ffa293221fc8410f2612c4e7adedb15381cf0dc9.tar.xz
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
Diffstat (limited to 'src')
-rw-r--r--src/processor/proc_maps_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/processor/proc_maps_linux.cc b/src/processor/proc_maps_linux.cc
index 3730acc3..1954cc86 100644
--- a/src/processor/proc_maps_linux.cc
+++ b/src/processor/proc_maps_linux.cc
@@ -61,7 +61,7 @@ bool ParseProcMaps(const std::string& input,
// 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.
// 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",
&region.start, &region.end, permissions, &region.offset,
&region.major_device, &region.minor_device, &region.inode,
&path_index) < 7) {