Skip to content

Commit

Permalink
use correct L_tmpnam on non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 5, 2024
1 parent 80a7ea2 commit 9d6ba77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Utils/CrossPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <string>
#include <time.h>
#include <mutex>
#include <cstdio>
#include <ctime>

namespace Utils
{
Expand Down Expand Up @@ -74,7 +76,7 @@ namespace Utils
#elif (IS_LINUX || IS_APPLE)
{
// mkstemp
char szTempName[L_tmpnam_s]{ 0 };
char szTempName[L_tmpnam]{ 0 };
if (nullptr != std::tmpnam(szTempName))
{
tempNameOut = szTempName;
Expand Down

0 comments on commit 9d6ba77

Please sign in to comment.