diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index d450c9aae8..7461ca1dd4 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1503,7 +1503,7 @@ wxString wxGetCwd() bool wxSetWorkingDirectory(const wxString& d) { #if defined( __UNIX__ ) || defined( __WXMAC__ ) || defined(__WXPM__) - return (chdir((char*)d.fn_str()) == 0); + return (chdir(FNSTRINGCAST d.fn_str()) == 0); #elif defined(__WINDOWS__) #ifdef __WIN32__