From b94dcbde31247d72a1acd794678876ea0b778ad1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 14 Feb 2012 21:55:14 +0100 Subject: main: fix WTF->DFU mode switching since cpid is now hex --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/idevicerestore.c') 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); -- cgit v1.1-32-gdbae