corrected wxGetWorkingDirectory for mac (stripping last char off)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fe0aca3712
commit
f056ea60f3
@ -1748,7 +1748,7 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
|
||||
wxString res = wxMacFSSpec2MacFilename( &cwdSpec ) ;
|
||||
|
||||
strcpy( buf , res ) ;
|
||||
buf[res.length()-1]=0 ;
|
||||
buf[res.length()]=0 ;
|
||||
}
|
||||
else
|
||||
buf[0] = 0 ;
|
||||
|
Loading…
Reference in New Issue
Block a user