Merge pull request #581 from SCMcLaughlin/master

Fix potential infinite loop in loginserver's config file reader
This commit is contained in:
Michael Cook (mackal) 2016-12-15 20:55:43 -05:00 committed by GitHub
commit ac0332c020

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)