From 8862e11b012d1c1def2084e639b88d34fba204c9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2000 17:14:26 +0000 Subject: [PATCH] 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 --- src/unix/mimetype.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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++ ) ; } -- 2.45.2