Fixed the debugger "region" command (still looking for others like that one)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6938 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1213,7 +1213,7 @@ static int dump_region(int argc, char **argv)
|
||||
|
||||
// if the argument looks like a hex number, treat it as such
|
||||
if(strlen(argv[1]) > 2 && argv[1][0] == '0' && argv[1][1] == 'x') {
|
||||
unsigned long num = atoul(argv[1]);
|
||||
unsigned long num = strtoul(argv[1], NULL, 16);
|
||||
region_id id = num;
|
||||
|
||||
region = hash_lookup(region_table, &id);
|
||||
|
||||
Reference in New Issue
Block a user