From f056ea60f3a14553a7ca76451f45ebd4d1ecd58b Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 18 Oct 2001 15:55:14 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;