X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf471cab8277f4cc2c19bce417356badf9e2ca49..399b60a0ad232265cd74ce8bf6a53a1f2cc57ff2:/src/unix/mimetype.cpp 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++ ) ; }