mirror of https://github.com/Icinga/icinga2.git
Windows fix for ConfigCompiler::ReadInput.
This commit is contained in:
parent
116e420167
commit
99e58f7031
|
@ -55,7 +55,7 @@ ConfigCompiler::~ConfigCompiler(void)
|
|||
*/
|
||||
size_t ConfigCompiler::ReadInput(char *buffer, size_t max_size)
|
||||
{
|
||||
m_Input->readsome(buffer, max_size);
|
||||
m_Input->read(buffer, max_size);
|
||||
return static_cast<size_t>(m_Input->gcount());
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ void ConfigCompiler::HandleLibrary(const String& library)
|
|||
vector<ConfigItem::Ptr> ConfigCompiler::CompileStream(const String& path,
|
||||
istream *stream)
|
||||
{
|
||||
stream->exceptions(istream::failbit | istream::badbit);
|
||||
stream->exceptions(istream::badbit);
|
||||
|
||||
ConfigCompiler ctx(path, stream);
|
||||
ctx.Compile();
|
||||
|
|
Loading…
Reference in New Issue