Fix sscanf parsing the memory map on linux, so that dfusion loads.

develop
Alexander Gavrilov 2012-03-26 21:05:24 +04:00
parent 3761426ef5
commit 22d775f95c
1 changed files with 2 additions and 2 deletions

@ -131,12 +131,12 @@ void Process::getMemRanges( vector<t_memrange> & ranges )
{
t_memrange temp;
temp.name[0] = 0;
sscanf(buffer, "%zx-%zx %s %zx %2zu:%2zu %zu %[^\n]s",
sscanf(buffer, "%zx-%zx %s %zx %2zx:%2zx %zu %[^\n]",
&start,
&end,
(char*)&permissions,
&offset, &device1, &device2, &node,
(char*)&temp.name);
(char*)temp.name);
temp.start = (void *) start;
temp.end = (void *) end;
temp.read = permissions[0] == 'r';