diff options
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 66b1631..4c3c0e0 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -716,9 +716,9 @@ int idevicerestore_start(struct idevicerestore_client_t* client) memset(&st, '\0', sizeof(struct stat)); if (stat(tmpf, &st) == 0) { - off_t fssize = 0; + uint64_t fssize = 0; ipsw_get_file_size(client->ipsw, fsname, &fssize); - if ((fssize > 0) && (st.st_size == fssize)) { + if ((fssize > 0) && ((uint64_t)st.st_size == fssize)) { info("Using cached filesystem from '%s'\n", tmpf); filesystem = strdup(tmpf); } |