fixed parsing of non quoted entries in .mime.types

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2000-03-09 17:14:26 +00:00
parent b97f6d757b
commit 8862e11b01

View File

@ -1264,8 +1264,9 @@ bool wxMimeTypesManagerImpl::ReadMimeTypes(const wxString& strFileName)
}
}
else {
// unquoted string ends at the first space
for ( pEnd = pc; !wxIsspace(*pEnd); pEnd++ )
// unquoted string ends at the first space or at the end of
// line
for ( pEnd = pc; *pEnd && !wxIsspace(*pEnd); pEnd++ )
;
}