Browse Source

Merge pull request #28 from meeh420/master

RouterInfo file size fix
pull/33/head
orignal 11 years ago
parent
commit
c31c1cfbc4
  1. 5
      RouterInfo.cpp

5
RouterInfo.cpp

@ -47,6 +47,11 @@ namespace data @@ -47,6 +47,11 @@ namespace data
{
s.seekg (0,std::ios::end);
m_BufferLen = s.tellg ();
if (m_BufferLen < 40)
{
LogPrint("File", filename, " is malformed");
return;
}
s.seekg(0, std::ios::beg);
s.read(m_Buffer,m_BufferLen);
ReadFromBuffer ();

Loading…
Cancel
Save