From: Vadim Zeitlin Date: Thu, 9 Mar 2000 17:14:26 +0000 (+0000) Subject: fixed parsing of non quoted entries in .mime.types X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8862e11b012d1c1def2084e639b88d34fba204c9 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 --- diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index fb55217c0c..e2a0e1d834 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -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++ ) ; }