summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-01-16 03:12:23 +0100
committerGravatar Nikias Bassen2019-01-16 03:12:23 +0100
commitccd3ebe24feb3fa5fa60099144678137b4c8ad6f (patch)
treeac3792eeb319ddf57372ae2dce62300579898ff7 /src/idevicerestore.c
parent35a74d95bc528b2466c90eea7ab1131e40d5f0f5 (diff)
downloadidevicerestore-ccd3ebe24feb3fa5fa60099144678137b4c8ad6f.tar.gz
idevicerestore-ccd3ebe24feb3fa5fa60099144678137b4c8ad6f.tar.bz2
main: Allow passing ECID in hex or decimal
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 41dfa4e..26c720b 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -78,9 +78,9 @@ void usage(int argc, char* argv[]) {
char* name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] FILE\n", (name ? name + 1 : argv[0]));
printf("Restore IPSW firmware FILE to an iOS device.\n\n");
- printf(" -i, --ecid ECID\ttarget specific device by its hexadecimal ECID\n");
- printf(" \te.g. 0xaabb123456 or 00000012AABBCCDD\n");
- printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n");
+ printf(" -i, --ecid ECID\ttarget specific device by its ECID\n");
+ printf(" \te.g. 0xaabb123456 (hex) or 1234567890 (decimal)\n");
+ printf(" -u, --udid UDID\ttarget specific device by its device UDID\n");
printf(" \tNOTE: only works with devices in normal mode.\n");
printf(" -d, --debug\t\tenable communication debugging\n");
printf(" -h, --help\t\tprints usage information\n");
@@ -1094,7 +1094,7 @@ int main(int argc, char* argv[]) {
case 'i':
if (optarg) {
char* tail = NULL;
- client->ecid = strtoull(optarg, &tail, 16);
+ client->ecid = strtoull(optarg, &tail, 0);
if (tail && (tail[0] != '\0')) {
client->ecid = 0;
}