]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
wxRegion fixes (off by one)
[wxWidgets.git] / 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 ;