diff --git a/futurerestore/futurerestore.cpp b/futurerestore/futurerestore.cpp index 8872939a..e202b39c 100644 --- a/futurerestore/futurerestore.cpp +++ b/futurerestore/futurerestore.cpp @@ -370,7 +370,7 @@ int futurerestore::doRestore(const char *ipsw, bool noerase){ } else { strcpy(tmpf, client->ipsw); } - char* p = strrchr((const char*)tmpf, '.'); + char* p = strrchr(tmpf, '.'); if (p) { *p = '\0'; } @@ -562,7 +562,7 @@ char *futurerestore::getLatestManifest(){ char **versions = getListOfiOSForDevice(_firmwareJson, _firmwareTokens, device, 0, &versionCnt); if (!versionCnt) reterror(-8, "[TSSC] failed finding latest iOS\n"); char *bpos = NULL; - while((bpos = strstr(versVals.version = strdup(versions[i++]),"[B]")) != 0){ + while((bpos = strstr((char*)(versVals.version = strdup(versions[i++])),"[B]")) != 0){ free((char*)versVals.version); if (--versionCnt == 0) reterror(-9, "[TSSC] automatic iOS selection couldn't find non-beta iOS\n"); }