mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
fixed up a few debug messages in p3filelists
This commit is contained in:
parent
bb4b577768
commit
068955d419
3 changed files with 10 additions and 8 deletions
|
@ -982,7 +982,7 @@ bool InternalFileHierarchyStorage::load(const std::string& fname)
|
|||
mNodes.clear();
|
||||
mNodes.resize(n_nodes,NULL) ;
|
||||
|
||||
for(uint32_t i=0;i<mNodes.size();++i)
|
||||
for(uint32_t i=0;i<mNodes.size() && buffer_offset < buffer_size;++i) // only the 2nd condition really is needed. The first one ensures that the loop wont go forever.
|
||||
{
|
||||
unsigned char *node_section_data = NULL ;
|
||||
uint32_t node_section_size = 0 ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue