1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-31 14:27:34 +00:00

Ports: Update milkytracker's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-17 21:21:11 +04:30 committed by Ali Mohammad Pur
parent e1a5f63e1a
commit 37857a629d
10 changed files with 157 additions and 60 deletions

View file

@ -0,0 +1,25 @@
From 8938812509ede61e6f50b65ebba94b8809eb0cf5 Mon Sep 17 00:00:00 2001
From: "jake.westrip" <jake.westrip@lonsec.com.au>
Date: Tue, 27 Apr 2021 18:34:53 +1000
Subject: [PATCH 5/5] 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
--
2.36.1