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:
@@ -1264,8 +1264,9 @@ bool wxMimeTypesManagerImpl::ReadMimeTypes(const wxString& strFileName)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// unquoted string ends at the first space
|
// unquoted string ends at the first space or at the end of
|
||||||
for ( pEnd = pc; !wxIsspace(*pEnd); pEnd++ )
|
// line
|
||||||
|
for ( pEnd = pc; *pEnd && !wxIsspace(*pEnd); pEnd++ )
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user