From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: "jake.westrip" Date: Tue, 27 Apr 2021 18:34:53 +1000 Subject: [PATCH] Replace tmpnam with mkstemp --- src/ppui/osinterface/posix/PPSystem_POSIX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ppui/osinterface/posix/PPSystem_POSIX.cpp b/src/ppui/osinterface/posix/PPSystem_POSIX.cpp index 9b84cfe..03b22b4 100644 --- a/src/ppui/osinterface/posix/PPSystem_POSIX.cpp +++ b/src/ppui/osinterface/posix/PPSystem_POSIX.cpp @@ -67,7 +67,7 @@ const SYSCHAR* System::getTempFileName() // instead of a file name. #pragma clang diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" - if ((tmpnam(buffer) == NULL)) + if ((mkstemp(buffer) == NULL)) #pragma clang diagnostic pop { // should not be the case, if it is the case, create something that