mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
Materialize temporary string obtained from boost path
This commit is contained in:
parent
38ebe28923
commit
490b65dfe2
4 changed files with 23 additions and 35 deletions
|
@ -447,10 +447,13 @@ namespace data
|
|||
if (m_Buffer)
|
||||
{
|
||||
std::ofstream f (fullPath, std::ofstream::binary | std::ofstream::out);
|
||||
f.write ((char *)m_Buffer, m_BufferLen);
|
||||
}
|
||||
if (f.is_open ())
|
||||
f.write ((char *)m_Buffer, m_BufferLen);
|
||||
else
|
||||
LogPrint(eLogError, "Can't save RouterInfo to ", fullPath);
|
||||
}
|
||||
else
|
||||
LogPrint (eLogError, "Can't save to file");
|
||||
LogPrint (eLogError, "Can't save RouterInfo m_Buffer==NULL");
|
||||
}
|
||||
|
||||
size_t RouterInfo::ReadString (char * str, std::istream& s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue