X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5ab9534bc6347d90da3238cf180c8acb47b4449a..d1b736b7968ceea4233f3fceecdb01173f68a9a3:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 3c5764a6bb..ac911cb0a9 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -75,6 +75,7 @@ #include "wx/intl.h" #include "wx/log.h" #include "wx/utils.h" + #include "wx/crt.h" #endif #include "wx/filename.h" @@ -767,7 +768,7 @@ static wxString wxCreateTempImpl( path += _T("XXXXXX"); // we need to copy the path to the buffer in which mkstemp() can modify it - wxCharBuffer buf( wxConvFile.cWX2MB( path ) ); + wxCharBuffer buf(path.fn_str()); // cast is safe because the string length doesn't change int fdTemp = mkstemp( (char*)(const char*) buf );