Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1104)

Unified Diff: src/processor/proc_maps_linux.cc

Issue 1280853003: Fix format specifier in proc maps to support 32-bit architectures. (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/processor/proc_maps_linux.cc
===================================================================
--- src/processor/proc_maps_linux.cc (revision 1481)
+++ src/processor/proc_maps_linux.cc (working copy)
@@ -61,7 +61,7 @@
// 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698