summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-17 19:33:23 +0200
committerGravatar Nikias Bassen2012-07-17 19:33:23 +0200
commit266b5cbbf49c8df964e6e44e711ee7a94f7dfc50 (patch)
tree143df2fbcdfb6b13a3e2430b9009d1e1b1d76390 /src
parent521850f062b8f8c5ac835f96bf1727901c255bda (diff)
downloadidevicerestore-266b5cbbf49c8df964e6e44e711ee7a94f7dfc50.tar.gz
idevicerestore-266b5cbbf49c8df964e6e44e711ee7a94f7dfc50.tar.bz2
main: use correct filename after extracting into cache dir
Diffstat (limited to 'src')
-rw-r--r--src/idevicerestore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index e546864..5080146 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -773,6 +773,8 @@ int main(int argc, char* argv[]) {
if (strstr(filesystem, ".extract")) {
// rename <fsname>.extract to <fsname>
rename(filesystem, tmpf);
+ free(filesystem);
+ filesystem = strdup(tmpf);
}
}