diff options
author | Nikias Bassen | 2012-07-17 19:33:23 +0200 |
---|---|---|
committer | Nikias Bassen | 2012-07-17 19:33:23 +0200 |
commit | 266b5cbbf49c8df964e6e44e711ee7a94f7dfc50 (patch) | |
tree | 143df2fbcdfb6b13a3e2430b9009d1e1b1d76390 /src/idevicerestore.c | |
parent | 521850f062b8f8c5ac835f96bf1727901c255bda (diff) | |
download | idevicerestore-266b5cbbf49c8df964e6e44e711ee7a94f7dfc50.tar.gz idevicerestore-266b5cbbf49c8df964e6e44e711ee7a94f7dfc50.tar.bz2 |
main: use correct filename after extracting into cache dir
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 2 |
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); } } |