X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5bb596668f594b06c2b56199c5fbd2411eab5ad8..74b965198ce3a4257deac901b6f7517e6447ca0f:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index eb7c74a968..2b3314abce 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1079,7 +1079,7 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite) wxStructStat fbuf; // get permissions of file1 - if ( wxStat( file1.c_str(), &fbuf) != 0 ) + if ( wxStat( file1, &fbuf) != 0 ) { // the file probably doesn't exist or we haven't the rights to read // from it anyhow