]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
A couple of identifiers at global level moved to the .cpp file from .h where
[wxWidgets.git] / src / common / filefn.cpp
index 364e400c0172eb350384e6412e392b335022c716..c36a08b281125e9dd3af78ee35a3db7cfbcfc94d 100644 (file)
@@ -1555,7 +1555,7 @@ void WXDLLEXPORT wxSplitPath(const char *pszFileName,
   if ( nPosDot > nPosUnix ) {
     // the file name looks like "path/name.ext"
     if ( pstrName )
-      *pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix);
+      *pstrName = wxString(pszFileName + nPosUnix + 1, nPosDot - nPosUnix - 1);
     if ( pstrExt )
       *pstrExt = wxString(pszFileName + nPosDot + 1);
   }