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:
Stefan Csomor 2001-10-18 15:55:14 +00:00
parent fe0aca3712
commit f056ea60f3

View File

@ -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 ;