summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-14 21:55:14 +0100
committerGravatar Nikias Bassen2012-02-14 21:55:14 +0100
commitb94dcbde31247d72a1acd794678876ea0b778ad1 (patch)
tree0c665521091e8b70c7a901e08ebe739eede759bf
parent3f225ca3da94432a4a7f3d0bea8563dfffc6f1ea (diff)
downloadidevicerestore-b94dcbde31247d72a1acd794678876ea0b778ad1.tar.gz
idevicerestore-b94dcbde31247d72a1acd794678876ea0b778ad1.tar.bz2
main: fix WTF->DFU mode switching since cpid is now hex
-rw-r--r--src/idevicerestore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index 971f81d..d6ead2f 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -274,7 +274,7 @@ int main(int argc, char* argv[]) {
}
char wtfname[256];
- sprintf(wtfname, "Firmware/dfu/WTF.s5l%04dxall.RELEASE.dfu", cpid);
+ sprintf(wtfname, "Firmware/dfu/WTF.s5l%04xxall.RELEASE.dfu", cpid);
char* wtftmp = NULL;
uint32_t wtfsize = 0;
ipsw_extract_to_memory(wtfipsw, wtfname, &wtftmp, &wtfsize);