mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fix integer size issue in ContentTypes.cpp which can lead to an infinite loop
This commit is contained in:
parent
0a21d92aca
commit
8238c822b4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user