diff options
author | Nikias Bassen | 2019-01-23 01:19:46 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-01-23 01:19:46 +0100 |
commit | a808accd1e748184933f0e4d97d499d79f34f889 (patch) | |
tree | 6635f67416e121c0ca9bb1b1feef3758c47b8a8a /src/idevicerestore.c | |
parent | e0b44cfb99c7e400c0fc51474f240dba3facd412 (diff) | |
download | idevicerestore-a808accd1e748184933f0e4d97d499d79f34f889.tar.gz idevicerestore-a808accd1e748184933f0e4d97d499d79f34f889.tar.bz2 |
Replace tempnam() with mkstemp() and provide reference implementation for systems lacking it
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r-- | src/idevicerestore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 3a496de..822601c 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -629,7 +629,7 @@ int idevicerestore_start(struct idevicerestore_client_t* client) unlock_file(&li); if (!extf) { // use temp filename - filesystem = tempnam(NULL, "ipsw_"); + filesystem = get_temp_filename("ipsw_"); if (!filesystem) { error("WARNING: Could not get temporary filename, using '%s' in current directory\n", fsname); filesystem = strdup(fsname); |