summaryrefslogtreecommitdiffstats
path: root/tools/irecovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-01-16 03:12:23 +0100
committerGravatar Nikias Bassen2019-01-27 18:47:36 +0100
commit26692e12fc929c9e7572719825b24b5fe375570d (patch)
tree48544ee9bcb4174773f2d6a7fa4ec0c4c3432200 /tools/irecovery.c
parent2a275241545e5b3e0e65eb3453a868d90dfa414d (diff)
downloadlibirecovery-26692e12fc929c9e7572719825b24b5fe375570d.tar.gz
libirecovery-26692e12fc929c9e7572719825b24b5fe375570d.tar.bz2
irecovery: Allow passing ECID in hex or decimal
Diffstat (limited to 'tools/irecovery.c')
-rw-r--r--tools/irecovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c
index 2db6f4f..280be7a 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -348,7 +348,7 @@ static void print_usage(int argc, char **argv) {
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
printf("Interact with an iOS device in DFU or recovery mode.\n\n");
printf("options:\n");
- printf(" -i ECID\tconnect to specific device by its hexadecimal ECID\n");
+ printf(" -i ECID\tconnect to specific device by its ECID\n");
printf(" -c CMD\trun CMD on device\n");
printf(" -m\t\tprint current device mode\n");
printf(" -f FILE\tsend file to device\n");
@@ -386,7 +386,7 @@ int main(int argc, char* argv[]) {
case 'i':
if (optarg) {
char* tail = NULL;
- ecid = strtoull(optarg, &tail, 16);
+ ecid = strtoull(optarg, &tail, 0);
if (tail && (tail[0] != '\0')) {
ecid = 0;
}