From: Stefan Csomor Date: Thu, 18 Oct 2001 15:55:14 +0000 (+0000) Subject: corrected wxGetWorkingDirectory for mac (stripping last char off) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f056ea60f3a14553a7ca76451f45ebd4d1ecd58b 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 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index ada206ba1c..b7f6a601d3 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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 ;