]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed parsing of non quoted entries in .mime.types
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2000 17:14:26 +0000 (17:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2000 17:14:26 +0000 (17:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index fb55217c0c62ef3e6424029e96365bdc299252f0..e2a0e1d834d429cca04d39b989865446aab4fa29 100644 (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++ )
                     ;
             }