From: Vadim Zeitlin Date: Thu, 3 Feb 2000 17:37:53 +0000 (+0000) Subject: fixed bug in handling quoted characters in value names X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2cce705aad2cb08aaa790c9cede95d0d7386d72a fixed bug in handling quoted characters in value names git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index acdc908251..1ee849986d 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -468,6 +468,7 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal) } } else { // a key + size_t count = 0; const wxChar *pEnd = pStart; while ( *pEnd != wxT('=') && !wxIsspace(*pEnd) ) { if ( *pEnd == wxT('\\') ) { @@ -476,10 +477,11 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal) pEnd++; } + count++; pEnd++; } - wxString strKey(FilterInEntryName(wxString(pStart, pEnd))); + wxString strKey(FilterInEntryName(wxString(pStart, count))); // skip whitespace while ( isspace(*pEnd) )