fix integer size issue in ContentTypes.cpp which can lead to an infinite loop

This commit is contained in:
electron128 2015-11-08 10:34:31 +01:00
parent 0a21d92aca
commit 8238c822b4

View File

@ -43,8 +43,8 @@ std::string ContentTypes::cTypeFromExt(const std::string &extension)
while(getline(file, line))
{
if(line.empty() || line[0] == '#') continue;
unsigned int i = line.find_first_of("\t ");
unsigned int j;
size_t i = line.find_first_of("\t ");
size_t j;
while(i != std::string::npos) //tokenize
{
j = i;