Fix potential infinite loop in loginserver's config file reader

This commit is contained in:
SCMcLaughlin 2016-12-15 14:47:58 -08:00
parent 3cc7d0db63
commit d305d67279

View File

@ -144,7 +144,7 @@ void Config::Parse(const char *file_name)
*/
void Config::Tokenize(FILE *input, std::list<std::string> &tokens)
{
char c = fgetc(input);
int c = fgetc(input);
std::string lexeme;
while(c != EOF)