]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected wxGetWorkingDirectory for mac (stripping last char off)
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 18 Oct 2001 15:55:14 +0000 (15:55 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 18 Oct 2001 15:55:14 +0000 (15:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index ada206ba1c3e16a77428fd5f3d0bfa5871c0cbd2..b7f6a601d3de445e5db96dc64f17f8c4ae2462f9 100644 (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 ;