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:
@@ -1748,7 +1748,7 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
|
|||||||
wxString res = wxMacFSSpec2MacFilename( &cwdSpec ) ;
|
wxString res = wxMacFSSpec2MacFilename( &cwdSpec ) ;
|
||||||
|
|
||||||
strcpy( buf , res ) ;
|
strcpy( buf , res ) ;
|
||||||
buf[res.length()-1]=0 ;
|
buf[res.length()]=0 ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
buf[0] = 0 ;
|
buf[0] = 0 ;
|
||||||
|
Reference in New Issue
Block a user