From a808accd1e748184933f0e4d97d499d79f34f889 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 23 Jan 2019 01:19:46 +0100 Subject: Replace tempnam() with mkstemp() and provide reference implementation for systems lacking it --- src/idevicerestore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/idevicerestore.c') 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); -- cgit v1.1-32-gdbae