fix
This commit is contained in:
parent
39158cce51
commit
77615f0fc8
6
dump.c
6
dump.c
@ -14,14 +14,14 @@ int main(int argc, char **argv) {
|
|||||||
if(!strcmp(*arg, "-a")) {
|
if(!strcmp(*arg, "-a")) {
|
||||||
if(!arg[1] || !arg[2]) goto usage;
|
if(!arg[1] || !arg[2]) goto usage;
|
||||||
if(pass == 2) {
|
if(pass == 2) {
|
||||||
dump((range_t) {&binary, parse_hex_uint32(arg[1]), parse_hex_uint32(arg[2])});
|
dump((range_t) {&binary, parse_hex_addr(arg[1]), parse_hex_addr(arg[2])});
|
||||||
}
|
}
|
||||||
arg += 3;
|
arg += 3;
|
||||||
} else if(!strcmp(*arg, "-A")) {
|
} else if(!strcmp(*arg, "-A")) {
|
||||||
if(!arg[1] || !arg[2]) goto usage;
|
if(!arg[1] || !arg[2]) goto usage;
|
||||||
if(pass == 2) {
|
if(pass == 2) {
|
||||||
uint32_t start = parse_hex_uint32(arg[1]);
|
uint32_t start = parse_hex_addr(arg[1]);
|
||||||
dump((range_t) {&binary, start, parse_hex_uint32(arg[2]) - start});
|
dump((range_t) {&binary, start, parse_hex_addr(arg[2]) - start});
|
||||||
}
|
}
|
||||||
arg += 3;
|
arg += 3;
|
||||||
} else if(!strcmp(*arg, "-s")) {
|
} else if(!strcmp(*arg, "-s")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user