mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
RouterInfo file size fix
This commit is contained in:
parent
11e11df5ca
commit
a46f311762
@ -46,7 +46,11 @@ namespace data
|
||||
if (s.is_open ())
|
||||
{
|
||||
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.read(m_Buffer,m_BufferLen);
|
||||
ReadFromBuffer ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user