Changeset 735


Ignore:
Timestamp:
10/14/15 08:02:50 (6 years ago)
Author:
rlacroix
Message:

Fix the minimal buffer size calculation for automatically sent attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/object_template_impl.hpp

    r731 r735  
    176176         if (!it->second->isEmpty()) 
    177177         { 
    178            size_t size = it->second->getName().size() + it->second->size(); 
     178           size_t size = it->second->getName().size() + sizeof(size_t) + it->second->size(); 
    179179           if (size > minimumSize) 
    180180             minimumSize = size; 
     
    185185       { 
    186186         // Account for extra header info 
    187          minimumSize += CEventClient::headerSize + getIdServer().size(); 
     187         minimumSize += CEventClient::headerSize + getIdServer().size() + sizeof(size_t); 
    188188 
    189189         const std::list<int>& ranks = client->getRanksServerLeader(); 
Note: See TracChangeset for help on using the changeset viewer.