X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fconfigreader.cpp;h=2ee6ace26e81bb942791186fc82fd7f5fe0f5a40;hb=050e232499a04bb516c2dfee50b1f8c41ef1f5a6;hp=e45a76b401c4b64b6c7aca5eda96ccf1a5c4e9e1;hpb=98659aa0dcac7636627846555ef7d5f807152b7e;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/configreader.cpp b/src/configreader.cpp index e45a76b40..2ee6ace26 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1333,9 +1333,8 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, FILE* &conf, const char* fil include_stack.push_back(filename); /* Start reading characters... */ - while (!feof(conf)) + while ((ch = fgetc(conf)) != EOF) { - ch = fgetc(conf); /* * Fix for moronic windows issue spotted by Adremelech. * Some windows editors save text files as utf-16, which is