From f4bdd1ce22061638240fb56ec73eb90c95c7dbcd Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 20 Sep 2012 21:50:42 +0200 Subject: client: Fix build number parsing for iOS 6 --- src/recovery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/recovery.c') diff --git a/src/recovery.c b/src/recovery.c index 4d288e2..eebb4df 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -141,7 +141,7 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build idevice_t device = NULL; restored_client_t restore = NULL; - if (client->build[0] >= '8') { + if (client->build_major >= 8) { client->restore_boot_args = strdup("rd=md0 nand-enable-reformat=1 -progress"); } @@ -153,7 +153,7 @@ int recovery_enter_restore(struct idevicerestore_client_t* client, plist_t build } } - if ((client->build[0] > '8') && !(client->flags & FLAG_CUSTOM)) { + if ((client->build_major > 8) && !(client->flags & FLAG_CUSTOM)) { /* send ApTicket */ if (recovery_send_ticket(client) < 0) { error("ERROR: Unable to send APTicket\n"); -- cgit v1.1-32-gdbae