Browse Source

RouterInfo file size fix

pull/28/head
Meeh 11 years ago
parent
commit
a46f311762
  1. 4
      RouterInfo.cpp

4
RouterInfo.cpp

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

Loading…
Cancel
Save