]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/mimetype.cpp
Improved selection mode handling in wxGrid::SelectBlock
[wxWidgets.git] / src / unix / mimetype.cpp
index fb55217c0c62ef3e6424029e96365bdc299252f0..e2a0e1d834d429cca04d39b989865446aab4fa29 100644 (file)
@@ -1264,8 +1264,9 @@ bool wxMimeTypesManagerImpl::ReadMimeTypes(const wxString& strFileName)
                 }
             }
             else {
                 }
             }
             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++ )
                     ;
             }
 
                     ;
             }