passing the 3rd argument to open to please GCC

This commit is contained in:
myT 2018-01-16 04:03:15 +01:00
parent f5b7c66b5a
commit c0ab2063d0

View file

@ -298,7 +298,7 @@ static void Sig_HandleCrash(int sig)
Sig_Unwind_GetContext(); Sig_Unwind_GetContext();
const int fd = open(Sig_BackTraceFilePath(), O_CREAT | O_TRUNC | O_WRONLY); const int fd = open(Sig_BackTraceFilePath(), O_CREAT | O_TRUNC | O_WRONLY, 0644);
if (fd != -1) if (fd != -1)
{ {
Sig_PrintAttempt("write safe libunwind stack trace"); Sig_PrintAttempt("write safe libunwind stack trace");