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:
Stefano Ceccherini
2004-03-09 09:53:54 +00:00
parent 65f6430e0c
commit 805bba9456
+1 -1
View File
@@ -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);