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", ®ion.start, ®ion.end, permissions, ®ion.offset, ®ion.major_device, ®ion.minor_device, ®ion.inode, &path_index) < 7) {