hope this fix the new bug with exchange of rs version

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1658 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
alexandrut 2009-09-16 19:42:00 +00:00
parent c3e68f3842
commit ca4b4dde5e

View File

@ -643,8 +643,9 @@ std::ostream &RsDiscVersion::print(std::ostream &out, uint16_t indent)
uint32_t RsDiscSerialiser::sizeVersion(RsDiscVersion *item) uint32_t RsDiscSerialiser::sizeVersion(RsDiscVersion *item)
{ {
uint32_t s = 8; uint32_t s = 8; /* header */
s += GetTlvStringSize(item->version); s += 4; /* size in RawString() */
s += item->version.length();
return s; return s;
} }