From debdd17e991830c4ced82f5e4672fe2b32a684c2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 10 Feb 1999 20:47:01 +0000 Subject: [PATCH] bug in wxSplitPath() corrected: the returned file name doesn't have the trailing dot any more git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1671 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 364e400c01..c36a08b281 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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); } -- 2.45.2